#include <logger.h>
Public Member Functions | |
| log_manager () | |
| C'tor. | |
| void | clear (void) |
| Clear the log manager. | |
| void | init (void) |
| Initialize the log manager. | |
| const bool | initialized (void) const |
| The initialized state of the log manager. | |
| void | write (const std::string &a_str, const uint16 a_indention=0, const configuration_manager::logging_type a_logging_level=configuration_manager::logging_manager, const pid_t a_pid=pid()) |
| Write a string to the log file. | |
Private Attributes | |
| bool | m_new_line |
| std::ofstream | m_out |
| bool | m_initialized |
Definition at line 17 of file logger.h.
|
|
C'tor.
Definition at line 22 of file logger.cc. References clear(), INTERNAL_ERROR, and logger. |
Here is the call graph for this function:

|
|
Clear the log manager.
Definition at line 32 of file logger.cc. References m_new_line, and m_out. Referenced by log_manager(), test(), test_rvm(), and test_vaulter(). |
|
|
Initialize the log manager.
Definition at line 41 of file logger.cc. References configuration_manager::action(), config, ERROR, exists(), configuration_manager::log_dir(), m_out, timestamp::str(), configuration_manager::timestamp(), and TRY_nomem. Referenced by main(), test(), test_rvm(), and test_vaulter(). |
Here is the call graph for this function:

|
|
The initialized state of the log manager.
Definition at line 80 of file logger.cc. Referenced by write(). |
|
||||||||||||||||||||
|
Write a string to the log file.
Definition at line 86 of file logger.cc. References config, initialized(), INTERNAL_ERROR, configuration_manager::logging_level(), m_new_line, m_out, and stamp(). Referenced by archive_manager::archive(), catalog_manager::catalog(), vault_manager::delete_oldest_archive(), job_archiver::end(), catalog_manager::erase(), report_manager::file_report(), archive_manager::init(), main(), archive_manager::mf_log_status(), job_archiver::mf_process_child_io(), vault_manager::overflow(), vault_manager::prepare(), report_manager::print_report(), job_archiver::process(), job_archiver::start(), test(), and vault_manager::usage(). |
Here is the call graph for this function:

|
|
|
|
|
|
|
|
|
1.3.6