|
Pol
Revision:cb584c9
|
#include <logfacility.h>
Inheritance diagram for Pol::Clib::Logging::LogSinkGenericFile:Public Member Functions | |
| LogSinkGenericFile (const LogFileBehaviour *behaviour) | |
| LogSinkGenericFile () | |
| virtual | ~LogSinkGenericFile () |
| virtual void | addMessage (fmt::Writer *msg) POL_OVERRIDE |
| virtual void | addMessage (fmt::Writer *msg, const std::string &id) POL_OVERRIDE |
| void | open_log_file (bool open_timestamp) |
| void | setBehaviour (const LogFileBehaviour *behaviour, std::string filename) |
Public Member Functions inherited from Pol::Clib::Logging::LogSink | |
| LogSink () | |
| virtual | ~LogSink () |
Protected Member Functions | |
| bool | test_for_rollover (std::chrono::time_point< std::chrono::system_clock > &now) |
Protected Attributes | |
| bool | _active_line |
| const LogFileBehaviour * | _behaviour |
| std::ofstream | _filestream |
| std::chrono::time_point< std::chrono::system_clock > | _lasttimestamp |
| std::string | _log_filename |
| struct tm | _opened |
Additional Inherited Members | |
Static Public Member Functions inherited from Pol::Clib::Logging::LogSink | |
| static void | addTimeStamp (std::ostream &stream) |
| static std::string | getTimeStamp () |
Definition at line 33 of file logfacility.h.
| Pol::Clib::Logging::LogSinkGenericFile::LogSinkGenericFile | ( | const LogFileBehaviour * | behaviour | ) |
Definition at line 257 of file logfacility.cpp.
References _opened, and open_log_file().
| Pol::Clib::Logging::LogSinkGenericFile::LogSinkGenericFile | ( | ) |
Definition at line 267 of file logfacility.cpp.
References _opened.
|
virtual |
Definition at line 272 of file logfacility.cpp.
References _filestream.
|
virtual |
Implements Pol::Clib::Logging::LogSink.
Reimplemented in Pol::Clib::Logging::LogSink_debuglog.
Definition at line 309 of file logfacility.cpp.
References _active_line, _behaviour, _filestream, _lasttimestamp, Pol::Clib::Logging::LogSink::addTimeStamp(), Pol::Clib::LogfileTimestampEveryLine, test_for_rollover(), and Pol::Clib::Logging::LogFileBehaviour::timestamps.
Referenced by addMessage(), Pol::Clib::Logging::LogSink_debuglog::addMessage(), open_log_file(), Pol::Clib::Logging::LogSink_cerr::~LogSink_cerr(), Pol::Clib::Logging::LogSink_cout::~LogSink_cout(), Pol::Clib::Logging::LogSink_debuglog::~LogSink_debuglog(), and Pol::Clib::Logging::LogSink_dual< log1, log2 >::~LogSink_dual().
|
virtual |
Implements Pol::Clib::Logging::LogSink.
Reimplemented in Pol::Clib::Logging::LogSink_debuglog.
Definition at line 334 of file logfacility.cpp.
References addMessage().
| void Pol::Clib::Logging::LogSinkGenericFile::open_log_file | ( | bool | open_timestamp | ) |
Definition at line 288 of file logfacility.cpp.
References _active_line, _behaviour, _filestream, _log_filename, _opened, addMessage(), Pol::Clib::Logging::LogSink::addTimeStamp(), Pol::Clib::localtime(), and Pol::Clib::Logging::LogFileBehaviour::openmode.
Referenced by Pol::Clib::Logging::LogSink_pollog::deinitialize_startlog(), and LogSinkGenericFile().
| void Pol::Clib::Logging::LogSinkGenericFile::setBehaviour | ( | const LogFileBehaviour * | behaviour, |
| std::string | filename | ||
| ) |
Definition at line 281 of file logfacility.cpp.
References _behaviour, and _log_filename.
|
protected |
Definition at line 340 of file logfacility.cpp.
References _behaviour, _filestream, _log_filename, _opened, Pol::Clib::Logging::LogFileBehaviour::basename, Pol::UoTool::buffer, Pol::Clib::localtime(), Pol::Clib::Logging::LogFileBehaviour::openmode, and Pol::Clib::Logging::LogFileBehaviour::rollover.
Referenced by addMessage().
|
protected |
Definition at line 51 of file logfacility.h.
Referenced by addMessage(), and open_log_file().
|
protected |
Definition at line 46 of file logfacility.h.
Referenced by addMessage(), Pol::Clib::Logging::LogSink_pollog::deinitialize_startlog(), open_log_file(), setBehaviour(), and test_for_rollover().
|
protected |
Definition at line 47 of file logfacility.h.
Referenced by addMessage(), Pol::Clib::Logging::LogSink_pollog::deinitialize_startlog(), Pol::Clib::Logging::LogSink_debuglog::disable(), open_log_file(), test_for_rollover(), and ~LogSinkGenericFile().
|
protected |
Definition at line 50 of file logfacility.h.
Referenced by addMessage().
|
protected |
Definition at line 48 of file logfacility.h.
Referenced by Pol::Clib::Logging::LogSink_pollog::deinitialize_startlog(), open_log_file(), setBehaviour(), and test_for_rollover().
|
protected |
Definition at line 49 of file logfacility.h.
Referenced by LogSinkGenericFile(), open_log_file(), and test_for_rollover().