Alexa Auto SDK  2.0.0
Logger.h
1 /*
2  * Copyright 2017-2019 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( aace::logger::Logger::Level level, std::chrono::system_clock::time_point time, const std::string& source, const std::string& message );
57 
66  void log( Level level, const std::string& tag, const std::string& message );
67 
74  void setEngineInterface( std::shared_ptr<aace::logger::LoggerEngineInterface> loggerEngineInterface );
75 
76 private:
77  std::shared_ptr<aace::logger::LoggerEngineInterface> m_loggerEngineInterface;
78 };
79 
80 } // aace::core
81 } // aace
82 
83 #endif // AACE_LOGGER_LOGGER_H
Definition: Logger.h:33
Level
Definition: LoggerEngineInterfaces.h:36
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:27

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