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

TDebugLog Class Template Reference

Inheritance diagram for TDebugLog:
Collaboration diagram for TDebugLog:

List of all members.

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


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)
TDebugLogoperator= (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

Member Typedef Documentation

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


Constructor & Destructor Documentation

TDebugLog ( const TDebugLog< Derived > &  rhs  ) 

virtual ~TDebugLog (  )  [virtual]

TDebugLog (  )  [inline, protected]

TDebugLog ( IDebugLogConfigurationCallback callback  )  [inline, explicit, protected]


Member Function Documentation

void SetDefaults (  )  [inline]

void DumpSettingsOnChange (  )  [inline]

void Shutdown (  )  [inline]

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

void EnableAllLogging (  )  [inline]

void DisableAllLogging (  )  [inline]

TDebugLog& operator= ( const TDebugLog< 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]

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]


Member Data Documentation

const string s_sep [static, protected, inherited]


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