Public Types | |
enum | SubSystems { All, JetByteTools, PerfMonTools, Collection } |
enum | MessageClass { Error = 0x01, Warning = 0x02, Info = 0x04, Trace = 0x10, Verbose = 0x20, Dump = 0x40, All = 0xFF, None = 0x00, Always = 0x00 } |
enum | MessageClass { Error = 0x01, Warning = 0x02, Info = 0x04, Trace = 0x10, Verbose = 0x20, Dump = 0x40, All = 0xFF, None = 0x00, Always = 0x00 } |
typedef std::map < JetByteTools::Core::_tstring, JetByteTools::Core::_tstring > | LogDump |
typedef std::map < JetByteTools::Core::_tstring, JetByteTools::Core::_tstring > | LogDump |
Public Member Functions | |
CDebugLog (const CDebugLog &rhs) | |
CDebugLog & | operator= (const CDebugLog &rhs) |
void | Configure (const IConfiguration &config, LogDump &dump) override |
void | ConfigureFrom (const IConfiguration &config, LogDump &dump, bool suppressDump=false) override |
bool | TryConfigureSubSystem (const JetByteTools::Core::_tstring &subSystem, DWORD enabledMessageClasses=All, bool configureChildren=false) override |
void | DumpConfiguration (LogDump &dump) const override |
void | LogMessage (SubSystems subSystem, MessageClass messageClass, const std::string &message) |
void | LogMessage (SubSystems subSystem, MessageClass messageClass, const char *pMessage) |
bool | DebugLogSystem () const |
void | ConfigureDefaults (bool showSubSystem, bool showMessageClass, bool dumpSettings, bool debugLogSystem) |
Static Public Member Functions | |
static void | SetDefaults () |
static void | DumpSettingsOnChange () |
static void | Shutdown () |
static bool | ShouldLog (SubSystems subSystem, MessageClass messageClass) |
static void | EnableAllLogging () |
static void | DisableAllLogging () |
static Derived & | Instance () |
static void | DisplayDump (const LogDump &dump) |
static void | DisplayDump (const LogDump &dump) |
Protected Types | |
typedef std::vector < SubSystems > | Children |
typedef std::set < SubSystems > | Displayed |
typedef std::vector < SubSystemDetails > | SubSystemInfo |
Protected Member Functions | |
virtual void | SetDefaults (SubSystemInfo &subSystems) |
void | Configure (SubSystemInfo &subSystems, const IConfiguration &config, SubSystemDetails &subSystem) const |
void | ConfigureFrom (SubSystemInfo &subSystems, const IConfiguration &config, LogDump &dump, bool suppressDump=false) |
bool | TryConfigureSubSystem (SubSystemInfo &subSystems, const _tstring &subSystem, DWORD enabledMessageClasses=All, bool configureChildren=true) |
void | DumpConfiguration (const SubSystemInfo &subSystems, LogDump &dump) const |
void | Initialise () |
void | ConfigureSubSystem (SubSystemInfo &subSystems, const _tstring &subSystem, DWORD enabledMessageClasses=All, bool configureChildren=true) |
void | SetChildrenRecursively (SubSystemInfo &subSystems, const Children &children, bool setEnabledMessageClasses, MessageClass enabledMessageClasses, bool setShowSubSystem, bool showSubSystem, bool setShowMessageClass, bool showMessageClass) const |
void | DumpSubSystem (const SubSystemInfo &subSystems, const SubSystemDetails &subSystem, Displayed &displayed, LogDump &dump, int depth) const |
Static Protected Member Functions | |
static SubSystemDetails & | GetSubSystemByName (const SubSystemInfo &subSystems, const _tstring &name) |
static const std::string & | MessageClassAsString (MessageClass msgClass) |
static void | AddSubSystem (SubSystemInfo &subSystems, SubSystems subSystem, const char *pName, SubSystems parent=0) |
Static Protected Attributes | |
static const std::string | s_sep |
typedef std::vector<SubSystems> Children [protected, inherited] |
typedef std::set<SubSystems> Displayed [protected, inherited] |
typedef std::vector<SubSystemDetails> SubSystemInfo [protected, inherited] |
typedef std::map<JetByteTools::Core::_tstring, JetByteTools::Core::_tstring> LogDump [inherited] |
typedef std::map<JetByteTools::Core::_tstring, JetByteTools::Core::_tstring> LogDump [inherited] |
enum SubSystems |
enum MessageClass [inherited] |
enum MessageClass [inherited] |
void SetDefaults | ( | ) | [inline, static, inherited] |
void SetDefaults | ( | SubSystemInfo & | subSystems | ) | [inline, protected, virtual, inherited] |
void DumpSettingsOnChange | ( | ) | [inline, static, inherited] |
void Shutdown | ( | ) | [inline, static, inherited] |
bool ShouldLog | ( | SubSystems | subSystem, | |
MessageClass | messageClass | |||
) | [inline, static, inherited] |
void EnableAllLogging | ( | ) | [inline, static, inherited] |
void DisableAllLogging | ( | ) | [inline, static, inherited] |
Derived & Instance | ( | ) | [inline, static, inherited] |
void Configure | ( | const IConfiguration & | config, | |
LogDump & | dump | |||
) | [inline, override, virtual, inherited] |
Implements CDebugLogBase.
void Configure | ( | SubSystemInfo & | subSystems, | |
const IConfiguration & | config, | |||
SubSystemDetails & | subSystem | |||
) | const [protected, inherited] |
void ConfigureFrom | ( | const IConfiguration & | config, | |
LogDump & | dump, | |||
bool | suppressDump = false | |||
) | [inline, override, virtual, inherited] |
Implements ISingletonDebugLog.
void ConfigureFrom | ( | SubSystemInfo & | subSystems, | |
const IConfiguration & | config, | |||
LogDump & | dump, | |||
bool | suppressDump = false | |||
) | [protected, inherited] |
bool TryConfigureSubSystem | ( | const JetByteTools::Core::_tstring & | subSystem, | |
DWORD | enabledMessageClasses = All , |
|||
bool | configureChildren = false | |||
) | [inline, override, virtual, inherited] |
Implements ISingletonDebugLog.
bool TryConfigureSubSystem | ( | SubSystemInfo & | subSystems, | |
const _tstring & | subSystem, | |||
DWORD | enabledMessageClasses = All , |
|||
bool | configureChildren = true | |||
) | [protected, inherited] |
void DumpConfiguration | ( | LogDump & | dump | ) | const [inline, override, virtual, inherited] |
Implements ISingletonDebugLog.
void DumpConfiguration | ( | const SubSystemInfo & | subSystems, | |
LogDump & | dump | |||
) | const [protected, inherited] |
void LogMessage | ( | SubSystems | subSystem, | |
MessageClass | messageClass, | |||
const std::string & | message | |||
) | [inline, inherited] |
void LogMessage | ( | SubSystems | subSystem, | |
MessageClass | messageClass, | |||
const char * | pMessage | |||
) | [inline, inherited] |
void Initialise | ( | ) | [inline, protected, inherited] |
static SubSystemDetails& GetSubSystemByName | ( | const SubSystemInfo & | subSystems, | |
const _tstring & | name | |||
) | [static, protected, inherited] |
bool DebugLogSystem | ( | ) | const [inherited] |
void ConfigureDefaults | ( | bool | showSubSystem, | |
bool | showMessageClass, | |||
bool | dumpSettings, | |||
bool | debugLogSystem | |||
) | [inherited] |
const string & MessageClassAsString | ( | MessageClass | msgClass | ) | [static, protected, inherited] |
void AddSubSystem | ( | SubSystemInfo & | subSystems, | |
SubSystems | subSystem, | |||
const char * | pName, | |||
SubSystems | parent = 0 | |||
) | [static, protected, inherited] |
void ConfigureSubSystem | ( | SubSystemInfo & | subSystems, | |
const _tstring & | subSystem, | |||
DWORD | enabledMessageClasses = All , |
|||
bool | configureChildren = true | |||
) | [protected, inherited] |
void SetChildrenRecursively | ( | SubSystemInfo & | subSystems, | |
const Children & | children, | |||
bool | setEnabledMessageClasses, | |||
MessageClass | enabledMessageClasses, | |||
bool | setShowSubSystem, | |||
bool | showSubSystem, | |||
bool | setShowMessageClass, | |||
bool | showMessageClass | |||
) | const [protected, inherited] |
void DumpSubSystem | ( | const SubSystemInfo & | subSystems, | |
const SubSystemDetails & | subSystem, | |||
Displayed & | displayed, | |||
LogDump & | dump, | |||
int | depth | |||
) | const [protected, inherited] |
static void DisplayDump | ( | const LogDump & | dump | ) | [inline, static, inherited] |
static void DisplayDump | ( | const LogDump & | dump | ) | [inline, static, inherited] |
const string s_sep [static, protected, inherited] |