Public Member Functions | |
std::string | getDate (void) |
void | header (int level) |
Message header appender function. More... | |
LogOut (::coil::LogStream::streambuf_type *streambuf) | |
virtual std::string & | prefix (std::string &prefix, int level) |
void | setDateFormat (const char *format) |
void | setName (const char *name) |
virtual | ~LogOut () |
Public Member Functions inherited from coil::log_stream< _CharT, _Traits > | |
void | disableLock () |
Disable the lock mode. More... | |
void | enableLock () |
Enable the lock mode. More... | |
int | getLevel () const |
Get the log level. More... | |
bool | isValid (int level) const |
Log level effective check. More... | |
ostream_type & | level (int level) |
Acquire log stream. More... | |
void | lock () |
Acquire log lock Acquire log lock when the lock mode is set. More... | |
log_stream (streambuf_type *sb, int levelmin, int levelmax, int level) | |
Constructor. More... | |
bool | setLevel (int level) |
Set the log level. More... | |
void | unlock () |
Release the log lock Release the log lock when the lock mode is set. More... | |
Protected Member Functions | |
std::string | getFmtDate () |
Protected Member Functions inherited from coil::log_stream< _CharT, _Traits > | |
log_stream () | |
Default constructor. More... | |
log_stream (const log_stream &x) | |
Copy Constructor. More... | |
log_stream & | operator= (const log_stream &x) |
Assignment operator. More... | |
~log_stream () | |
Destructor. More... | |
Protected Attributes | |
std::string | m_dateFormat |
std::string | m_name |
Additional Inherited Members | |
Public Types inherited from coil::log_stream< _CharT, _Traits > | |
typedef _CharT | char_type |
typedef coil::Guard< Mutex > | Guard |
typedef coil::Mutex | Mutex |
typedef std::basic_ostream< char_type, traits_type > | ostream_type |
typedef std::basic_streambuf< char_type, traits_type > | streambuf_type |
typedef _Traits | traits_type |
Static Public Attributes inherited from coil::log_stream< _CharT, _Traits > | |
static bool | m_lockEnable = true |
Lock enable mode. More... | |
static Mutex | m_mutex |
Mutual exclusion object. More... | |
Definition at line 107 of file LoggerTests.cpp.
|
inline |
Definition at line 113 of file LoggerTests.cpp.
|
inlinevirtual |
Definition at line 118 of file LoggerTests.cpp.
|
inline |
Definition at line 149 of file LoggerTests.cpp.
|
inlineprotected |
Definition at line 168 of file LoggerTests.cpp.
|
inlinevirtual |
Message header appender function.
Subclasses of this class should override this operation, and this function should be defined to append some header to the log messages.
Reimplemented from coil::log_stream< _CharT, _Traits >.
Definition at line 138 of file LoggerTests.cpp.
|
inlinevirtual |
Definition at line 120 of file LoggerTests.cpp.
|
inline |
Definition at line 134 of file LoggerTests.cpp.
|
inline |
Definition at line 163 of file LoggerTests.cpp.
|
protected |
Definition at line 183 of file LoggerTests.cpp.
|
protected |
Definition at line 182 of file LoggerTests.cpp.