CLOGIT(3) Common Library Functions CLOGIT(3)NAME
Clogit - log server messages in local log or in system logger
SYNOPSIS
#include "Clog.h"
int Cinitlog (char *cmd, char *logfile)
int Clogit (int level, char *func, char *msg, ...)
int Cvlogit (int level, char *func, char *msg, va_list ap)
DESCRIPTION
Cinitlog initializes the server logging routines.
Clogit logs server messages in a local log or in the system logger.
Cvlogit is the same as Clogit but takes a va_list instead of a variable number of arguments.
cmd specifies a string to be prepended to the syslog messages.
logfile
specifies a path for the server log file. If set to syslog, the system logger will be used. By default, only messages with level at
least as important as LOG_INFO will be logged. The level threshold can be changed with the environment variable LOG_PRIORITY.
level is associated with the message. The possible values, in order of decreasing importance are:
LOG_EMERG
LOG_ALERT
LOG_CRIT
LOG_ERR
LOG_WARNING
LOG_NOTICE
LOG_INFO
LOG_DEBUG
func is the name of the function that issues the message.
msg is a format as in printf.
RETURN VALUE
These routines return 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately.
ERRORS
EFAULT logfile is a NULL pointer.
ENAMETOOLONG The length of logfile exceeds CA_MAXPATHLEN.
LCG $Date$ CLOGIT(3)
Check Out this Related Man Page
CLOGIT(3) Common Library Functions CLOGIT(3)NAME
Clogit - log server messages in local log or in system logger
SYNOPSIS
#include "Clog.h"
int Cinitlog (char *cmd, char *logfile)
int Clogit (int level, char *func, char *msg, ...)
int Cvlogit (int level, char *func, char *msg, va_list ap)
DESCRIPTION
Cinitlog initializes the server logging routines.
Clogit logs server messages in a local log or in the system logger.
Cvlogit is the same as Clogit but takes a va_list instead of a variable number of arguments.
cmd specifies a string to be prepended to the syslog messages.
logfile
specifies a path for the server log file. If set to syslog, the system logger will be used. By default, only messages with level at
least as important as LOG_INFO will be logged. The level threshold can be changed with the environment variable LOG_PRIORITY.
level is associated with the message. The possible values, in order of decreasing importance are:
LOG_EMERG
LOG_ALERT
LOG_CRIT
LOG_ERR
LOG_WARNING
LOG_NOTICE
LOG_INFO
LOG_DEBUG
func is the name of the function that issues the message.
msg is a format as in printf.
RETURN VALUE
These routines return 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately.
ERRORS
EFAULT logfile is a NULL pointer.
ENAMETOOLONG The length of logfile exceeds CA_MAXPATHLEN.
LCG $Date$ CLOGIT(3)
I support an app that outputs alert and audit messages to one log file (vendor says they can't be separated). The script that I have written takes a copy (mv cmd) of the file to do the separation and reformatting. I have a problem that I loose records (messages are being written constantly, upto 3+... (5 Replies)
anyone know of a FREE logfile checker that they would recommend?
looking to scan thru syslog, sulog, messages, etc... looking for security type related entries., thanks,
brian (1 Reply)
Team,
I am very new to Unix and would like to know how to read messages in syslog and also if it possible to export the syslog messages to a windows server event log? Can it be possible to use scripting to achieve this?
Thanks,
Sarav (1 Reply)
Good Day.
Any idea on the messages log. it would be a great help to us. Upon checking the on the system logs, I found the following messages:
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
kjournald... (1 Reply)
1. Even if i have the handles for ctrl+c it gives off a segfault
2. syslog doesn't log LOG_ERR event with log masked specified or non specified, it logs LOG_WARNING however...
#include <sys/types.h> /* include this before any other sys headers */
#include <sys/stat.h>
#include <fcntl.h>... (2 Replies)
Dear,
Require a script to check :
If the file under /opt/OV/log directory has recent 5 hours(or user defined value) file generated or not
If generated then cmd to call :
opcmsg a=a o=o msg_grp=OpC msg_text="Log file didn't generated on $time" s=critical (1 Reply)
Hello
I have a server whose os level reads 5300-01-00-0000. It has to be upgraded to the latest level which is 5300-12-04-1119. What would I need to do go get the server to this point? Would I need to go through each patch level until I get it to current? If so, would anyone happen to know... (1 Reply)
Hi,
Below is what i am seeing in /var/log/messages on ubuntu machine.
2013-01-14T18:29:39.319736+00:00 test01 ldap-mail: test1
Jan 14 18:29:39 test01 ldap-mail: test2
2013-01-14T18:29:39.320792+00:00 test01 ldap-mail: test3
Jan 14 18:29:39 test01 ldap-mail: test4But on other ubuntu... (29 Replies)