Destructor.
....................................................................... Destructor.
void Logger::closeLogFile |
( |
| ) |
|
|
static |
Close the logfile
....................................................................... Open the logfile
static void gcp::util::Logger::dispatch |
( |
std::string |
message, |
|
|
bool |
isError |
|
) |
| |
|
static |
Dispatch a message to handlers
....................................................................... Dispatch a message (call any handlers set to handle this message type)
void Logger::installErrHandler |
( |
LOG_HANDLER_FN * |
errHandler | ) |
|
|
static |
Install an error-message handler.
....................................................................... Install an error-message handler.
void Logger::installLogHandler |
( |
LOG_HANDLER_FN * |
logHandler | ) |
|
|
static |
Install a log-message handler.
....................................................................... Install a log-message handler.
void Logger::installStderrPrintFn |
( |
LOG_HANDLER_FN * |
stderrPrintFn | ) |
|
|
static |
....................................................................... Install a default stderr print fn
void Logger::installStdoutPrintFn |
( |
LOG_HANDLER_FN * |
stdoutPrintFn | ) |
|
|
static |
....................................................................... Install a default stdout print fn
static void gcp::util::Logger::log |
( |
std::string |
message, |
|
|
bool |
isError |
|
) |
| |
|
static |
Log a message to the logfile
....................................................................... Log a message (write to a logfile, if any)
void Logger::openLogFile |
( |
| ) |
|
|
static |
Open the logfile
....................................................................... Open the logfile
void Logger::printToStderr |
( |
std::string |
message | ) |
|
|
static |
....................................................................... Print a message to stderr. If a user-defined print function has been installed, use that, else use the default print method
void Logger::printToStdout |
( |
std::string |
message | ) |
|
|
static |
....................................................................... Print a message to stdout. If a user-defined print function has been installed, use that, else use the default print method
static void gcp::util::Logger::report |
( |
std::string |
message, |
|
|
bool |
isError |
|
) |
| |
|
static |
Report a message to both handlers and logfile
....................................................................... Report a message (equivalent to log + dispatch)
void Logger::setLogFileDirectory |
( |
const std::string & |
dir | ) |
|
|
static |
Set the directory for a logfile
....................................................................... Set the directory for a logfile
void Logger::setLogFilePrefix |
( |
const std::string & |
prefix | ) |
|
|
static |
Set the prefix for a logfile
....................................................................... Set the prefix for a logfile
void Logger::setPrefix |
( |
std::string |
prefix | ) |
|
|
static |
Set a string to be prepended to every message we log.
....................................................................... Set a string to be prepended to every message we log
The documentation for this class was generated from the following files:
- gcpCbass/util/common/Logger.h
- gcpCbass/util/common/Logger.cc