71 m_out.open(filename.c_str());
72 if (!
m_out.is_open()) {
73 TRY_nomem(es =
"Could not open log file: \"");
76 throw(
ERROR(errno,es));
83 str =
"Rsync Vault Manager - ";
97 const std::string& a_str,
98 const uint16 a_indention,
103 std::string::const_iterator csi;
117 for (csi = a_str.begin(); csi != a_str.end(); ++csi) {
log_manager logger
The global log manager.
bool m_use_error_logging_level
An extended string class.
void set_error_logging(bool a_b)
Use error-logging-level instead of logging-level.
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.
const bool initialized(void) const
The initialized state of the log manager.
const class timestamp & timestamp(void) const
Return the timestamp of this instance of rvm.
const std::string & log_dir(void) const
Return the log-dir path.
const action_type action(void) const
Return the action rvm is to take.
std::string stamp(const pid_t a_pid, const int a_indention)
Generate a timstamp string.
Write information to a log file.
bool exists(const std::string &a_path)
Return true if the file or directory exists.
void clear(void)
Clear the log manager.
void init(void)
Initialize the log manager.
#define INTERNAL_ERROR(e, s)
configuration_manager config
The global configuration manager instance.
const std::string str(void) const
Generate a string.
const logging_type & error_logging_level(void) const
Return the error-logging-level.
const logging_type & logging_level(void) const
Return the logging-level.