#include <FileLogOutput.h>
Static Public Member Functions | |
static LogOutputStream * | create (const icl_core::String &name, const icl_core::String &config_prefix, icl_core::logging::LogLevel log_level=cDEFAULT_LOG_LEVEL) |
Private Member Functions | |
void | closeLogFile () |
void | expandFilename () |
FileLogOutput (const icl_core::String &name, const icl_core::String &config_prefix, icl_core::logging::LogLevel log_level) | |
FileLogOutput (const icl_core::String &name, const icl_core::String &config_prefix, icl_core::logging::LogLevel log_level, bool flush) | |
void | flush () |
bool | isOpen () |
void | openLogFile () |
virtual void | pushImpl (const icl_core::String &log_line) |
void | rotateLogFile () |
virtual | ~FileLogOutput () |
Private Attributes | |
bool | m_delete_old_files |
uint32_t | m_delete_older_than_days |
icl_core::String | m_filename |
bool | m_flush |
int64_t | m_last_rotation |
std::ofstream | m_log_file |
bool | m_rotate |
Friends | |
class | LoggingManager |
Additional Inherited Members | |
Public Member Functions inherited from icl_core::logging::LogOutputStream | |
void | changeLogFormat (const char *format) |
void | changeTimeFormat (const char *format) |
icl_core::logging::LogLevel | getLogLevel () const |
LogOutputStream (const icl_core::String &name, const icl_core::String &config_prefix, icl_core::logging::LogLevel log_level, bool use_worker_thread=true) | |
icl_core::String | name () const |
void | printConfiguration () const |
void | push (icl_core::logging::LogLevel log_level, const char *log_stream_description, const char *filename, int line, const char *classname, const char *objectname, const char *function, const char *text) |
void | setLogLevel (icl_core::logging::LogLevel log_level) |
void | shutdown () |
void | start () |
Starts the worker thread of the log output stream. More... | |
virtual | ~LogOutputStream () |
Protected Member Functions inherited from icl_core::logging::LogOutputStream | |
LogOutputStream (const icl_core::String &name, icl_core::logging::LogLevel log_level, bool use_worker_thread=true) | |
Protected Member Functions inherited from icl_core::Noncopyable | |
Noncopyable () | |
virtual | ~Noncopyable () |
An output stream which streams to a file.
This class is implemented as a singleton so that only one instance can exist in any process.
Definition at line 49 of file FileLogOutput.h.
|
private |
Definition at line 48 of file FileLogOutput.cpp.
|
private |
Definition at line 105 of file FileLogOutput.cpp.
|
privatevirtual |
Definition at line 123 of file FileLogOutput.cpp.
|
private |
Definition at line 185 of file FileLogOutput.cpp.
|
static |
Creates a new file log output stream object.
Definition at line 42 of file FileLogOutput.cpp.
|
private |
Definition at line 304 of file FileLogOutput.cpp.
|
private |
Definition at line 171 of file FileLogOutput.cpp.
|
private |
Definition at line 157 of file FileLogOutput.cpp.
|
private |
Definition at line 206 of file FileLogOutput.cpp.
|
privatevirtual |
This virtual function is called with a formatted log line. It sould be overridden by output stream implementations, which do not need the individual fields of a log message but only a formatted log message text.
Reimplemented from icl_core::logging::LogOutputStream.
Definition at line 128 of file FileLogOutput.cpp.
|
private |
Definition at line 239 of file FileLogOutput.cpp.
|
friend |
Definition at line 52 of file FileLogOutput.h.
|
private |
Definition at line 84 of file FileLogOutput.h.
|
private |
Definition at line 85 of file FileLogOutput.h.
|
private |
Definition at line 78 of file FileLogOutput.h.
|
private |
Definition at line 87 of file FileLogOutput.h.
|
private |
Definition at line 82 of file FileLogOutput.h.
|
private |
Definition at line 79 of file FileLogOutput.h.
|
private |
Definition at line 81 of file FileLogOutput.h.