yumapro
24.10-1
YumaPro SDK
|
NCX System Logging Manager. More...
#include <stdio.h>
#include <xmlstring.h>
#include "procdefs.h"
#include "status.h"
#include "thd.h"
Go to the source code of this file.
Macros | |
#define | LOGERROR (log_get_system_log_level() >= LOG_DEBUG_ERROR) |
Check if at least log-level=error. | |
#define | LOGWARN (log_get_system_log_level() >= LOG_DEBUG_WARN) |
Check if at least log-level=warn. | |
#define | LOGINFO (log_get_system_log_level() >= LOG_DEBUG_INFO) |
Check if at least log-level=info. | |
#define | LOGDEBUG (log_get_system_log_level() >= LOG_DEBUG_DEBUG) |
Check if at least log-level=debug. | |
#define | LOGDEBUG2 (log_get_system_log_level() >= LOG_DEBUG_DEBUG2) |
Check if at least log-level=debug2. | |
#define | LOGDEBUG3 (log_get_system_log_level() >= LOG_DEBUG_DEBUG3) |
Check if at least log-level=debug3. | |
#define | LOGDEBUG4 (log_get_system_log_level() >= LOG_DEBUG_DEBUG4) |
Check if at least log-level=debug4. | |
Enumerations | |
enum | log_stream_t { LOG_STREAM_NONE , LOG_STREAM_STDOUT , LOG_STREAM_STDERR , LOG_STREAM_LOGFILE , LOG_STREAM_CAPFILE } |
The output stream enumerations used in util/log.c. More... | |
enum | log_debug_t { LOG_DEBUG_NONE , LOG_DEBUG_OFF , LOG_DEBUG_WRITE , LOG_DEBUG_DEV0 , LOG_DEBUG_ERROR , LOG_DEBUG_WARN , LOG_DEBUG_INFO , LOG_DEBUG_DEV1 , LOG_DEBUG_DEBUG , LOG_DEBUG_DEBUG2 , LOG_DEBUG_DEBUG3 , LOG_DEBUG_DEBUG4 } |
The debug level enumerations used in util/log.c. More... | |
enum | log_debug_app_t { } |
syslog wants to know what app is logging ... More... | |
Functions | |
void | disable_default_stdout (void) |
Used by yp-client to disable log.c output. | |
void | enable_default_stdout (void) |
Used by C program variants of yp-client to enable log.c output. | |
void | log_cleanup (boolean phase2, boolean debugs) |
Final logger cleanup prior to restart or shutdown. More... | |
status_t | log_open (const char *fname, boolean append, boolean tstamps) |
Open a logfile for writing. More... | |
void | log_close (void) |
Close the logfile. More... | |
status_t | log_audit_open (const char *fname, boolean append, boolean tstamps) |
Open the audit logfile for writing. More... | |
void | log_audit_close (void) |
Close the audit_logfile. More... | |
boolean | log_audit_is_open (void) |
Check if the audit log is open. More... | |
status_t | log_alt_open (const char *fname) |
Open an alternate logfile for writing. More... | |
status_t | log_alt_open_ex (const char *fname, boolean overwrite) |
Open an alternate logfile for writing. More... | |
status_t | log_alt_open_force (const char *fname, boolean overwrite, boolean force_mode) |
Open an alternate logfile for writing. More... | |
void | log_alt_close (void) |
Close the alternate logfile. More... | |
void | log_init (void) |
Initialize logger state. More... | |
void | log_flush (void) |
Flush output buffers. More... | |
void | log_stdout (const char *fstr,...) __attribute__((format(printf |
Write output to STDOUT. More... | |
void void | log_stdout_level (log_debug_t level, const char *fstr,...) __attribute__((format(printf |
Write output to STDOUT if debug level set. More... | |
void void void | log_write (const char *fstr,...) __attribute__((format(printf |
Write a new entry to the main log. More... | |
void void void void | log_write_append (const char *fstr,...) __attribute__((format(printf |
Append to the last log entry to the main log. More... | |
void void void void void void void void void | log_audit_write (const char *fstr,...) __attribute__((format(printf |
Write an new entry to the audit log file. More... | |
void void void void void void void void void void | log_audit_write_level (log_debug_t level, const char *fstr,...) __attribute__((format(printf |
Write an new entry to the audit log file if the log level is set. More... | |
void | log_alt_write (const char *fstr,...) __attribute__((format(printf |
Write to the alternate log file. More... | |
void void | log_alt_write_level (log_debug_t level, const char *fstr,...) __attribute__((format(printf |
Write to the alternate log file if debug-level set. More... | |
void | log_error (const char *fstr,...) __attribute__((format(printf |
Generate a new LOG_DEBUG_ERROR log entry. More... | |
void void | log_error_append (const char *fstr,...) __attribute__((format(printf |
Append to a LOG_DEBUG_ERROR log entry. More... | |
void void void | log_warn (const char *fstr,...) __attribute__((format(printf |
Generate a new LOG_DEBUG_WARN log entry. More... | |
void void void void | log_warn_append (const char *fstr,...) __attribute__((format(printf |
Append to a LOG_DEBUG_WARN log entry. More... | |
void void void void void | log_info (const char *fstr,...) __attribute__((format(printf |
Generate a new LOG_DEBUG_INFO log entry. More... | |
void void void void void void | log_info_append (const char *fstr,...) __attribute__((format(printf |
Append to a LOG_DEBUG_INFO log entry. More... | |
void void void void void void void | log_debug (const char *fstr,...) __attribute__((format(printf |
Generate a new LOG_DEBUG_DEBUG log entry. More... | |
void void void void void void void void | log_debug_append (const char *fstr,...) __attribute__((format(printf |
Append to a LOG_DEBUG_DEBUG log entry. More... | |
void void void void void void void void void | log_debug2 (const char *fstr,...) __attribute__((format(printf |
Generate a new LOG_DEBUG_DEBUG2 log entry. More... | |
void void void void void void void void void void | log_debug2_append (const char *fstr,...) __attribute__((format(printf |
Append to a LOG_DEBUG_DEBUG2 log entry. More... | |
void void void void void void void void void void void | log_debug3 (const char *fstr,...) __attribute__((format(printf |
Generate a new LOG_DEBUG_DEBUG3 log entry. More... | |
void void void void void void void void void void void void | log_debug3_append (const char *fstr,...) __attribute__((format(printf |
Append to a LOG_DEBUG_DEBUG3 log entry. More... | |
void void void void void void void void void void void void void | log_debug4 (const char *fstr,...) __attribute__((format(printf |
Generate a new LOG_DEBUG_DEBUG4 log entry. More... | |
void void void void void void void void void void void void void void | log_debug4_append (const char *fstr,...) __attribute__((format(printf |
Append to a LOG_DEBUG_DEBUG4 log entry. More... | |
void void void void void void void void void void void void void void void void void void void void logfn_t | log_get_logfn (log_debug_t loglevel) |
Get the logfn_t for the corresponding log-level. More... | |
logfn_t | log_get_appendfn (log_debug_t loglevel) |
Get the logfn_t for the corresponding log-level FOR APPEND. More... | |
void void void void void void void void void void void void | log_set_log_level (log_debug_t dlevel) |
Set the main log level. More... | |
void | log_set_syslog_log_level (log_debug_t dlevel) |
Set the syslog log level. More... | |
void | log_set_pthread_log_level (log_debug_t dlevel) |
Set the pthreads log level. More... | |
log_debug_t | log_get_log_level (void) |
Get the main log level. More... | |
log_debug_t | log_get_syslog_log_level (void) |
Get the syslog log level. More... | |
log_debug_t | log_get_pthread_log_level (void) |
Get the pthreads log level. More... | |
void | log_set_highres_datetime (boolean val) |
Set the high resolution date-time usage flag. More... | |
boolean | log_get_highres_datetime (void) |
Get the high resolution date-time usage flag. More... | |
NCX System Logging Manager.