libassa 3.5.1
|
Functions | |
void | set_app_name (const std::string &appname_) |
Set application name. | |
int | open_log_file (const char *logfname_, u_long groups_=ALL, u_long maxsize_=10485760) |
Open log file. | |
int | open_log_stdout (u_long groups_=ALL) |
Write log message to standard output. | |
int | open_log_server (const std::string &logsvraddr_, const char *logfname_, Reactor *reactor_, u_long groups_=ASSA::ALL, u_long maxsize_=10485760) |
Open connection with and write log message to the log server. | |
void | log_resync (void) |
Resynchronize logging stream after Fork. | |
int | log_close (void) |
Close logging stream. | |
void | set_gmt_timezone (void) |
Set timezone to GMT. | |
void | enable_timestamp (void) |
Enable timestamp logging. | |
void | disable_timestamp (void) |
Disable timestamp logging. | |
Close logging stream.
Definition at line 359 of file Logger.h.
References LOGGER.
Referenced by ASSA::GenServer::~GenServer().
|
inline |
Open log file.
logfname_ | File name |
groups_ | ORed bitmask of logging groups as defined in assa/LogMask.h. Default is to log all groups. |
maxsize_ | Maximum size log file can reach before renamed to logfilename_0. Default is 10 megabytes. |
Definition at line 319 of file Logger.h.
References LOGGER.
Referenced by ASSA::GenServer::init_internals().
|
inline |
Open connection with and write log message to the log server.
logsvraddr_ | Address of the logserver, assa-logd in the form port@host |
logfname_ | Log file path |
reactor_ | Reactor to use for communications. |
groups_ | ORed bitmask of logging groups as defined in LogMask.h. Default is to log all groups. |
maxsize_ | Maximum size log file can reach before renamed to logfilename_0. Default is 10Mb. |
Definition at line 344 of file Logger.h.
References LOGGER.
Referenced by ASSA::GenServer::init_internals().
Set application name.
Call this function before any other to have application name set properly. This is especially important if you plan to call open_log_server() to send messages to the log server, assa-logd.
Definition at line 305 of file Logger.h.
References LOGGER.
Referenced by ASSA::GenServer::init_internals().