diff options
author | Spp <spp@jorge.gr> | 2013-11-07 16:34:44 +0100 |
---|---|---|
committer | Spp <spp@jorge.gr> | 2013-11-07 16:34:44 +0100 |
commit | 8aa9745c4c7e80ffcbbd3f2377125ad08b30b661 (patch) | |
tree | 824a43c64f1778ed1bcad62a24137262473464f5 /src/server/shared/Configuration/Config.h | |
parent | d26bb8517c6030139b0383659fede9628abac22c (diff) |
Core/Logging: Extend logging system to allow inheritance of loggers
- Changed default loggers and appenders
- '.' determines the relation between loggers ("type.subtype" inherits "type" logger setting if logger "type.subtype" is not defined)
- When core logs a message it search for the correct logger (root is the default one)
ie: a message logged with "type.subtype"
* Core will try to find a logger with name "type.subtype", if its not found then will search for "type", again if its not found it will return the default one "root"
Diffstat (limited to 'src/server/shared/Configuration/Config.h')
-rw-r--r-- | src/server/shared/Configuration/Config.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/shared/Configuration/Config.h b/src/server/shared/Configuration/Config.h index d633e37f0c4..49f5c5e07fb 100644 --- a/src/server/shared/Configuration/Config.h +++ b/src/server/shared/Configuration/Config.h @@ -20,7 +20,7 @@ #define CONFIG_H #include <string> -#include <map> +#include <list> #include <ace/Singleton.h> #include <ace/Configuration_Import_Export.h> #include <ace/Thread_Mutex.h> @@ -56,6 +56,7 @@ public: float GetFloatDefault(const char* name, float def); std::string const& GetFilename(); + std::list<std::string> GetKeysByString(std::string const& name); private: bool GetValueHelper(const char* name, ACE_TString &result); |