Public Types | |
typedef std::deque < std::string > | Strings |
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 DWORD | SubSystems |
Public Member Functions | |
void | SetDefaults () |
void | DumpSettingsOnChange () |
void | Shutdown () |
bool | ShouldLog (SubSystems subSystem, MessageClass messageClass) |
void | EnableAllLogging () |
void | DisableAllLogging () |
TDebugLog (const TDebugLog &rhs) | |
TDebugLog & | operator= (const TDebugLog &rhs) |
virtual | ~TDebugLog () |
void | Configure (const IConfiguration &config, LogDump &dump) override |
void | ConfigureFrom (const IConfiguration &config, LogDump &dump, bool suppressDump=false) |
void | ConfigureSubSystem (const _tstring &subSystem, DWORD enabledMessageClasses, bool configureChildren=true) |
void | DumpConfiguration () const |
void | LogMessage (SubSystems subSystem, MessageClass messageClass, const Strings &messages) |
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 | DisplayDump (const LogDump &dump) |
Protected Types | |
typedef std::vector < SubSystems > | Children |
typedef std::set < SubSystems > | Displayed |
typedef std::vector < SubSystemDetails > | SubSystemInfo |
Protected Member Functions | |
TDebugLog () | |
TDebugLog (IDebugLogConfigurationCallback &callback) | |
void | Initialise () |
void | Configure (SubSystemInfo &subSystems, const IConfiguration &config, SubSystemDetails &subSystem) const |
void | ConfigureSubSystem (SubSystemInfo &subSystems, const _tstring &subSystem, DWORD enabledMessageClasses=All, bool configureChildren=true) |
bool | TryConfigureSubSystem (SubSystemInfo &subSystems, const _tstring &subSystem, DWORD enabledMessageClasses=All, bool configureChildren=true) |
void | ConfigureFrom (SubSystemInfo &subSystems, const IConfiguration &config, LogDump &dump, bool suppressDump=false) |
void | DumpConfiguration (const SubSystemInfo &subSystems, LogDump &dump) const |
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 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::deque<std::string> Strings |
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 DWORD SubSystems [inherited] |
enum MessageClass [inherited] |
virtual ~TDebugLog | ( | ) | [virtual] |
TDebugLog | ( | ) | [inline, protected] |
TDebugLog | ( | IDebugLogConfigurationCallback & | callback | ) | [inline, explicit, protected] |
void SetDefaults | ( | ) | [inline] |
void DumpSettingsOnChange | ( | ) | [inline] |
void Shutdown | ( | ) | [inline] |
bool ShouldLog | ( | SubSystems | subSystem, | |
MessageClass | messageClass | |||
) | [inline] |
void EnableAllLogging | ( | ) | [inline] |
void DisableAllLogging | ( | ) | [inline] |
void Configure | ( | const IConfiguration & | config, | |
LogDump & | dump | |||
) | [inline, override, virtual] |
Implements CDebugLogBase.
void ConfigureFrom | ( | const IConfiguration & | config, | |
LogDump & | dump, | |||
bool | suppressDump = false | |||
) | [inline] |
void ConfigureSubSystem | ( | const _tstring & | subSystem, | |
DWORD | enabledMessageClasses, | |||
bool | configureChildren = true | |||
) | [inline] |
void DumpConfiguration | ( | ) | const [inline] |
void LogMessage | ( | SubSystems | subSystem, | |
MessageClass | messageClass, | |||
const Strings & | messages | |||
) | [inline] |
void LogMessage | ( | SubSystems | subSystem, | |
MessageClass | messageClass, | |||
const std::string & | message | |||
) | [inline] |
void LogMessage | ( | SubSystems | subSystem, | |
MessageClass | messageClass, | |||
const char * | pMessage | |||
) | [inline] |
void Initialise | ( | ) | [inline, protected] |
bool DebugLogSystem | ( | ) | const [inherited] |
void ConfigureDefaults | ( | bool | showSubSystem, | |
bool | showMessageClass, | |||
bool | dumpSettings, | |||
bool | debugLogSystem | |||
) | [inherited] |
void Configure | ( | SubSystemInfo & | subSystems, | |
const IConfiguration & | config, | |||
SubSystemDetails & | subSystem | |||
) | const [protected, 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] |
bool TryConfigureSubSystem | ( | SubSystemInfo & | subSystems, | |
const _tstring & | subSystem, | |||
DWORD | enabledMessageClasses = All , |
|||
bool | configureChildren = true | |||
) | [protected, inherited] |
void ConfigureFrom | ( | SubSystemInfo & | subSystems, | |
const IConfiguration & | config, | |||
LogDump & | dump, | |||
bool | suppressDump = false | |||
) | [protected, inherited] |
void DumpConfiguration | ( | const SubSystemInfo & | subSystems, | |
LogDump & | dump | |||
) | const [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] |
const string s_sep [static, protected, inherited] |