86 virtual void Write(
LogLevel _level,
uint8 const _nodeId,
char const* _format, va_list _args) = 0;
106 static Log* Create(
string const& _filename,
bool const _bAppend,
bool const _bConsoleOutput,
LogLevel const _saveLevel,
LogLevel const _queueLevel,
LogLevel const _dumpTrigger);
125 static void Destroy();
135 static bool SetLoggingClass(
i_LogImpl *LogClass,
bool Append =
false);
141 static void SetLoggingState(
bool _dologging);
157 static bool GetLoggingState();
174 static void SetLogFileName(
const string &_filename);
184 static void Write(
LogLevel _level,
char const* _format, ...);
195 static void Write(
LogLevel _level,
uint8 const _nodeId,
char const* _format, ...);
199 static void QueueDump();
204 static void QueueClear();
207 Log(
string const& _filename,
bool const _bAppend,
bool const _bConsoleOutput,
LogLevel _saveLevel,
LogLevel _queueLevel,
LogLevel _dumpTrigger);
210 static std::vector<i_LogImpl*> m_pImpls;
211 static Log* s_instance;
#define OPENZWAVE_EXPORT
Definition: Defs.h:52
unsigned char uint8
Definition: Defs.h:85
Implements a platform-independent log...written to the console and, optionally, a file.
Definition: Log.h:97
static Log * Create(i_LogImpl *LogClass)
Create a log.
static void GetLoggingState(LogLevel *_saveLevel, LogLevel *_queueLevel, LogLevel *_dumpTrigger)
Obtain the various logging levels.
A Abstract class to create a Custom Logging Method.
Definition: Log.h:76
virtual void QueueDump()=0
i_LogImpl()
Definition: Log.h:78
virtual void SetLogFileName(const string &_filename)=0
virtual ~i_LogImpl()
Definition: Log.h:82
virtual void Write(LogLevel _level, uint8 const _nodeId, char const *_format, va_list _args)=0
virtual void QueueClear()=0
virtual void SetLoggingState(LogLevel _saveLevel, LogLevel _queueLevel, LogLevel _dumpTrigger)=0
Definition: Bitfield.cpp:31
char const * LogLevelString[]
Definition: Log.cpp:44