Alexa Auto SDK  2.3.0
Logger.h
1 /*
2  * Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #ifndef AACE_LOGGER_LOGGER_H
17 #define AACE_LOGGER_LOGGER_H
18 
19 #include <string>
20 #include <chrono>
21 
22 #include "AACE/Core/PlatformInterface.h"
23 #include "LoggerEngineInterfaces.h"
24 
27 namespace aace {
28 namespace logger {
29 
34 protected:
35  Logger() = default;
36 
37 public:
38  virtual ~Logger();
39 
45 
56  virtual bool logEvent(
58  std::chrono::system_clock::time_point time,
59  const std::string& source,
60  const std::string& message);
61 
70  void log(Level level, const std::string& tag, const std::string& message);
71 
78  void setEngineInterface(std::shared_ptr<aace::logger::LoggerEngineInterface> loggerEngineInterface);
79 
80 private:
81  std::shared_ptr<aace::logger::LoggerEngineInterface> m_loggerEngineInterface;
82 };
83 
84 } // namespace logger
85 } // namespace aace
86 
87 #endif // AACE_LOGGER_LOGGER_H
Definition: Logger.h:33
Level
Definition: LoggerEngineInterfaces.h:35
Definition: PlatformInterface.h:29
Definition: AddressBook.h:26
virtual bool logEvent(aace::logger::Logger::Level level, std::chrono::system_clock::time_point time, const std::string &source, const std::string &message)
Definition: Logger.cpp:23
void log(Level level, const std::string &tag, const std::string &message)
Definition: Logger.cpp:31

Alexa Auto SDK 2.3.0 - Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0