Alexa Auto SDK  2.0.0
LoggerConfiguration.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_CONFIGURATION_H
17 #define AACE_LOGGER_LOGGER_CONFIGURATION_H
18 
19 #include <utility>
20 
21 #include "AACE/Core/EngineConfiguration.h"
22 #include "LoggerEngineInterfaces.h"
23 
26 namespace aace {
27 namespace logger {
28 namespace config {
29 
30 class SinkConfiguration;
31 class RuleConfiguration;
32 
62 public:
68 
92  static std::shared_ptr<aace::core::config::EngineConfiguration> createConsoleSinkConfig( const std::string& id, Level level );
93 
117  static std::shared_ptr<aace::core::config::EngineConfiguration> createSyslogSinkConfig( const std::string& id, Level level );
118 
154  static std::shared_ptr<aace::core::config::EngineConfiguration> createFileSinkConfig( const std::string& id, Level level, const std::string& path, const std::string& prefix = "aace", uint32_t maxSize = 5242880, uint32_t maxFiles = 3, bool append = true );
155 
184  static std::shared_ptr<aace::core::config::EngineConfiguration> createLoggerRuleConfig( const std::string& sink, Level level, const std::string& sourceFilter = "", const std::string& tagFilter = "", const std::string& messageFilter = "" );
185 };
186 
187 } // aace::logger::config
188 } // aace::logger
189 } // aace
190 
191 #endif // AACE_LOGGER_LOGGER_CONFIGURATION_H
Level
Definition: LoggerEngineInterfaces.h:36
static std::shared_ptr< aace::core::config::EngineConfiguration > createSyslogSinkConfig(const std::string &id, Level level)
static std::shared_ptr< aace::core::config::EngineConfiguration > createLoggerRuleConfig(const std::string &sink, Level level, const std::string &sourceFilter="", const std::string &tagFilter="", const std::string &messageFilter="")
Definition: AddressBook.h:26
Definition: LoggerConfiguration.h:61
static std::shared_ptr< aace::core::config::EngineConfiguration > createFileSinkConfig(const std::string &id, Level level, const std::string &path, const std::string &prefix="aace", uint32_t maxSize=5242880, uint32_t maxFiles=3, bool append=true)
static std::shared_ptr< aace::core::config::EngineConfiguration > createConsoleSinkConfig(const std::string &id, Level level)

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