CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DefaultLogging Struct Reference

#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
 

Detailed Description

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.

Member Function Documentation

void DefaultLogging::Set ( LogFacilities  info,
LogFacilities  error 
)
static

Change the default logging facilities

Definition at line 48 of file logging.cc.

Referenced by main().

Here is the caller graph for this function:

Member Data Documentation

LogFacilities DefaultLogging::error = kLogSyslogErr
static

Definition at line 55 of file logging_internal.h.

Referenced by Set().

LogFacilities DefaultLogging::info = kLogSyslog
static

Definition at line 54 of file logging_internal.h.

Referenced by Set().


The documentation for this struct was generated from the following files: