The C++ framework for developing highly scalable, high performance servers on Windows platforms.

TSingletonDebugLog Class Template Reference

Inheritance diagram for TSingletonDebugLog:
Collaboration diagram for TSingletonDebugLog:

List of all members.

template<typename Derived>
class JetByteTools::Core::TSingletonDebugLog< Derived >


Public Types

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
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

 TSingletonDebugLog (const TSingletonDebugLog &rhs)
TSingletonDebugLogoperator= (const TSingletonDebugLog &rhs)
 ~TSingletonDebugLog () override
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 DerivedInstance ()
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

void Initialise ()
 TSingletonDebugLog ()
virtual void SetDefaults (SubSystemInfo &subSystems)
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 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

Member Typedef Documentation

typedef std::vector<SubSystems> Children [protected, inherited]

typedef std::set<SubSystems> Displayed [protected, inherited]

typedef std::vector<SubSystemDetails> SubSystemInfo [protected, inherited]

typedef DWORD SubSystems [inherited]

Reimplemented in CDebugLog, CDebugLog, CDebugLog, CDebugLog, and CDebugLog.

typedef DWORD SubSystems [inherited]

Reimplemented in CDebugLog, CDebugLog, CDebugLog, CDebugLog, and CDebugLog.


Member Enumeration Documentation

enum MessageClass [inherited]

Enumerator:
Error 
Warning 
Info 
Trace 
Verbose 
Dump 
All 
None 
Always 

enum MessageClass [inherited]

Enumerator:
Error 
Warning 
Info 
Trace 
Verbose 
Dump 
All 
None 
Always 


Constructor & Destructor Documentation

TSingletonDebugLog ( const TSingletonDebugLog< Derived > &  rhs  ) 

~TSingletonDebugLog (  )  [override]

TSingletonDebugLog (  )  [protected]


Member Function Documentation

void SetDefaults (  )  [inline, static]

void DumpSettingsOnChange (  )  [inline, static]

void Shutdown (  )  [inline, static]

bool ShouldLog ( SubSystems  subSystem,
MessageClass  messageClass 
) [inline, static]

void EnableAllLogging (  )  [inline, static]

void DisableAllLogging (  )  [inline, static]

Derived & Instance (  )  [inline, static]

TSingletonDebugLog& operator= ( const TSingletonDebugLog< Derived > &  rhs  ) 

void Configure ( const IConfiguration config,
LogDump dump 
) [inline, override, virtual]

Implements CDebugLogBase.

void ConfigureFrom ( const IConfiguration config,
LogDump dump,
bool  suppressDump = false 
) [inline, override, virtual]

Implements ISingletonDebugLog.

bool TryConfigureSubSystem ( const JetByteTools::Core::_tstring subSystem,
DWORD  enabledMessageClasses = All,
bool  configureChildren = false 
) [inline, override, virtual]

Implements ISingletonDebugLog.

void DumpConfiguration ( LogDump dump  )  const [inline, override, virtual]

Implements ISingletonDebugLog.

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]

static SubSystemDetails& GetSubSystemByName ( const SubSystemInfo subSystems,
const _tstring name 
) [static, protected]

void SetDefaults ( SubSystemInfo subSystems  )  [inline, protected, virtual]

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]

static void DisplayDump ( const LogDump dump  )  [inline, static, inherited]


Member Data Documentation

const string s_sep [static, protected, inherited]


Generated on Sun Sep 12 19:08:54 2021 for The Server Framework - v7.4 by doxygen 1.5.3