Fork Vasum on GitHub Official Vasum Wiki on Tizen.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
logger-config.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License version 2.1 as published by the Free Software Foundation.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public
14  * License along with this library; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16  */
17 
24 #ifndef LXCPP_LOGGER_CONFIG_HPP
25 #define LXCPP_LOGGER_CONFIG_HPP
26 
27 #include "config.hpp"
28 #include "cargo/fields.hpp"
29 #include "logger/logger.hpp"
30 
31 
32 namespace lxcpp {
33 
34 
39 {
42  std::string mArg;
43 
44  void set(const logger::LogType type,
45  const logger::LogLevel level,
46  const std::string &arg = "");
47 
49  (
50  mType,
51  mLevel,
52  mArg
53  )
54 };
55 
56 
57 } //namespace lxcpp
58 
59 
60 #endif // LXCPP_LOGGER_CONFIG_HPP
std::string mArg
Definition: logger-config.hpp:42
Configuration file for the code.
logger::LogType mType
Definition: logger-config.hpp:40
LogLevel
Available log levels.
Definition: level.hpp:36
logger::LogLevel mLevel
Definition: logger-config.hpp:41
#define CARGO_REGISTER(...)
Registers cargo fields within class.
Definition: fields.hpp:74
LogType
Definition: logger.hpp:82
void set(const logger::LogType type, const logger::LogLevel level, const std::string &arg="")
Definition: logger-config.cpp:30
Logger configuration.
Definition: logger-config.hpp:38