log_manager Class Reference

Write information to a log file. More...

#include <logger.h>

List of all members.

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.
void set_error_logging (bool a_b)
 Use error-logging-level instead of logging-level.

Private Attributes

bool m_new_line
std::ofstream m_out
bool m_initialized
bool m_use_error_logging_level


Detailed Description

Write information to a log file.

Definition at line 17 of file logger.h.


Constructor & Destructor Documentation

log_manager::log_manager  ) 
 

C'tor.

Definition at line 22 of file logger.cc.

References clear(), INTERNAL_ERROR, and logger.

Here is the call graph for this function:


Member Function Documentation

void log_manager::clear void   ) 
 

Clear the log manager.

Definition at line 32 of file logger.cc.

References m_initialized, m_new_line, m_out, and m_use_error_logging_level.

Referenced by log_manager(), test(), test_rvm(), test_vaulter(), test_vaulter1(), test_vaulter2(), and test_vaulter3().

void log_manager::init void   ) 
 

Initialize the log manager.

Definition at line 42 of file logger.cc.

References configuration_manager::action(), configuration_manager::action_archive, configuration_manager::action_relink, config, ERROR, exists(), configuration_manager::log_dir(), logger, m_initialized, m_out, m_use_error_logging_level, configuration_manager::timestamp(), TRY_nomem, VERSION, and write().

Referenced by main(), test(), test_rvm(), test_vaulter(), test_vaulter1(), test_vaulter2(), and test_vaulter3().

Here is the call graph for this function:

const bool log_manager::initialized void   )  const
 

The initialized state of the log manager.

Definition at line 90 of file logger.cc.

References m_initialized.

Referenced by write().

void log_manager::set_error_logging bool  a_b  ) 
 

Use error-logging-level instead of logging-level.

Definition at line 130 of file logger.cc.

References m_use_error_logging_level.

Referenced by job_archiver::mf_do_chores().

void log_manager::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.

Definition at line 96 of file logger.cc.

References config, configuration_manager::error_logging_level(), initialized(), INTERNAL_ERROR, configuration_manager::logging_level(), m_new_line, m_out, m_use_error_logging_level, 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(), init(), 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(), vault_manager::select(), job_archiver::start(), test(), and vault_manager::usage().

Here is the call graph for this function:


Member Data Documentation

bool log_manager::m_initialized [private]
 

Definition at line 38 of file logger.h.

Referenced by clear(), init(), and initialized().

bool log_manager::m_new_line [private]
 

Definition at line 36 of file logger.h.

Referenced by clear(), and write().

std::ofstream log_manager::m_out [private]
 

Definition at line 37 of file logger.h.

Referenced by clear(), init(), and write().

bool log_manager::m_use_error_logging_level [private]
 

Definition at line 39 of file logger.h.

Referenced by clear(), init(), set_error_logging(), and write().


The documentation for this class was generated from the following files:
Generated on Fri Jun 23 16:57:30 2006 for rvm by  doxygen 1.4.2