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);
184 static void Write(
LogLevel _level,
char const* _format, ...);
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
static void QueueClear()
Definition Log.cpp:255
static bool GetLoggingState()
Determine whether logging is enabled or not (retained for backward compatibility).
Definition Log.cpp:193
static void Write(LogLevel _level, char const *_format,...)
Write an entry to the log.
Definition Log.cpp:202
static void QueueDump()
Send the queued log messages to the log output.
Definition Log.cpp:240
static void Destroy()
Destroys the log.
Definition Log.cpp:110
static bool SetLoggingClass(i_LogImpl *LogClass, bool Append=false)
Set the Logging Implementation Class to replace the standard File/Console logging.
Definition Log.cpp:120
static Log * Create(i_LogImpl *LogClass)
Create a log.
static void SetLoggingState(bool _dologging)
Enable or disable library logging (retained for backward compatibility).
Definition Log.cpp:143
static void GetLoggingState(LogLevel *_saveLevel, LogLevel *_queueLevel, LogLevel *_dumpTrigger)
Obtain the various logging levels.
static void SetLogFileName(const string &_filename)
Change the log file name.
Definition Log.cpp:270
static Log * Create(string const &_filename, bool const _bAppend, bool const _bConsoleOutput, LogLevel const _saveLevel, LogLevel const _queueLevel, LogLevel const _dumpTrigger)
Create a log.
Definition Log.cpp:68
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:33
Definition Bitfield.cpp:31
char const * LogLevelString[]
Definition Log.cpp:44