Go to the source code of this file.
Functions | |
int | log_init () |
Initialize the log system and 'log' function. | |
void | log (const char *format,...) |
Log a message to monits logfile or syslog. | |
void | log_close () |
Close the log file or syslog. | |
int | get_log_fd () |
Methods support both syslog or own logfile.
Definition in file log.c.
|
|
|
Log a message to monits logfile or syslog.
Definition at line 111 of file log.c. References ASSERT, myrun::dolog, myrun::have_tty, Run, and myrun::use_syslog. Referenced by can_http(), check_file(), check_ftp(), check_http(), check_imap(), check_nntp(), check_pop(), check_smtp(), check_ssh(), create_pidfile(), daemonize(), error(), find_rcfile(), get_pid(), get_timestamp(), monit_http(), out_print(), spawn(), and validate(). |
|
Close the log file or syslog.
Definition at line 149 of file log.c. References error(), prog, Run, STRERROR, and myrun::use_syslog. Referenced by log_init(). |
|
Initialize the log system and 'log' function.
Definition at line 84 of file log.c. References myrun::dolog, log_close(), and Run. |