Alexa Auto SDK  2.3.1
LoggerConfiguration.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_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(
93  const std::string& id,
94  Level level);
95 
119  static std::shared_ptr<aace::core::config::EngineConfiguration> createSyslogSinkConfig(
120  const std::string& id,
121  Level level);
122 
158  static std::shared_ptr<aace::core::config::EngineConfiguration> createFileSinkConfig(
159  const std::string& id,
160  Level level,
161  const std::string& path,
162  const std::string& prefix = "aace",
163  uint32_t maxSize = 5242880,
164  uint32_t maxFiles = 3,
165  bool append = true);
166 
195  static std::shared_ptr<aace::core::config::EngineConfiguration> createLoggerRuleConfig(
196  const std::string& sink,
197  Level level,
198  const std::string& sourceFilter = "",
199  const std::string& tagFilter = "",
200  const std::string& messageFilter = "");
201 };
202 
203 } // namespace config
204 } // namespace logger
205 } // namespace aace
206 
207 #endif // AACE_LOGGER_LOGGER_CONFIGURATION_H
Level
Definition: LoggerEngineInterfaces.h:35
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.3.1 - Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0