CernVM-FS
2.12.0
|
#include <logging_internal.h>
Static Public Member Functions | |
static void | Set (LogFacilities info, LogFacilities error) |
Static Public Attributes | |
static LogFacilities | info = kLogSyslog |
static LogFacilities | error = kLogSyslogErr |
Default logging facilities
Classes which are reused in different parts of CVMFS may need to log to different facilities. For example, in the client logging should be done to the system log, while in cvmfs_swissknife it should be done to stdout.
When logging to the default facilities:
LogCvmfs(kLogCvmfs, DefaultLogging::info, ...)
the facilities can be changed as needed, without modifying the caller code.
The default facilities are kLogStdout and kLogStderr.
Definition at line 48 of file logging_internal.h.
|
static |
Change the default logging facilities
Definition at line 48 of file logging.cc.
Referenced by main().
|
static |
Definition at line 55 of file logging_internal.h.
Referenced by Set().
|
static |
Definition at line 54 of file logging_internal.h.
Referenced by Set().