Fire Core  8.0.0.alpha
GIS framework per tutti gli usi
 Tutto Classi Namespace Funzioni Variabili Ridefinizioni di tipo (typedef) Tipi enumerati (enum) Valori del tipo enumerato Friend
Logger.hpp
1 // Copyright 2015 GEOSYSTEMS SRL
2 // All Rights Reserved.
3 
4 #ifndef FIRE_LOGGING_CORE_LOGGER_HPP_INCLUDED
5 #define FIRE_LOGGING_CORE_LOGGER_HPP_INCLUDED
6 
7 #include <exception>
8 #include <map>
9 #include <string>
10 
11 #include "fire/logging/spi/AbstractLogger.hpp"
12 #include "fire/logging/Level.hpp"
13 
14 namespace fire {
15 namespace logging {
16 namespace core {
17 namespace appender {
18 class Appender;
19 } // namespace appender
20 } // namespace core
21 } // namespace logging
22 } // namespace fire
23 
30 namespace fire {
37 namespace logging {
44 namespace core {
52  private:
59  std::map< std::string, fire::logging::core::appender::Appender* > appenders;
60 
61  protected:
73  explicit Logger(const std::string& name);
74 
75  public:
82  virtual ~Logger();
106  std::map< std::string, fire::logging::core::appender::Appender* > getAppenders();
142  void setLevel(const fire::logging::Level::Level& level);
154  std::string toString();
155 };
156 } // namespace core
157 } // namespace logging
158 } // namespace fire
159 
160 #endif
std::string name
Nome del logger.
Definition: AbstractLogger.hpp:47
fire::logging::Level::Level getLevel()
Classe astratta per la gestione di un logger.
Definition: AbstractLogger.hpp:41
Logger(const std::string &name)
Definition: Logger.hpp:51
void addAppender(const fire::logging::core::appender::Appender &appender)
void setLevel(const fire::logging::Level::Level &level)
Definition: Appender.hpp:43
Level
Enumerativo per la gestione di un livello di log.
Definition: Level.hpp:26
std::map< std::string, fire::logging::core::appender::Appender * > getAppenders()
void removeAppender(const fire::logging::core::appender::Appender &appender)