OpenSDN source code
|
#include "base/logging.h"
#include <sys/types.h>
#include <unistd.h>
#include <log4cplus/helpers/pointer.h>
#include <log4cplus/configurator.h>
#include <log4cplus/fileappender.h>
#include <log4cplus/syslogappender.h>
#include <boost/format.hpp>
#include <boost/algorithm/string/predicate.hpp>
Go to the source code of this file.
Functions | |
bool | LoggingDisabled () |
void | SetLoggingDisabled (bool flag) |
bool | LoggingUseSyslog () |
void | SetUseSysLog (bool use_syslog) |
void | CheckEnvironmentAndUpdate () |
void | SetLoggingLevel (LogLevel logLevel) |
void | LoggingInit () |
void | LoggingInit (const std::string &filename, long maxFileSize, int maxBackupIndex, bool useSyslog, const std::string &syslogFacility, const std::string &ident, LogLevel logLevel) |
void | LoggingInit (const std::string &propertyFile) |
Variables | |
static bool | disabled_ |
static bool | use_syslog_ |
static const char * | loggingPattern |
void CheckEnvironmentAndUpdate | ( | ) |
bool LoggingDisabled | ( | ) |
Definition at line 24 of file logging.cc.
void LoggingInit | ( | ) |
void LoggingInit | ( | const std::string & | filename, |
long | maxFileSize, | ||
int | maxBackupIndex, | ||
bool | useSyslog, | ||
const std::string & | syslogFacility, | ||
const std::string & | ident, | ||
LogLevel | logLevel | ||
) |
void LoggingInit | ( | const std::string & | propertyFile | ) |
bool LoggingUseSyslog | ( | ) |
Definition at line 32 of file logging.cc.
void SetLoggingDisabled | ( | bool | flag | ) |
Definition at line 28 of file logging.cc.
void SetLoggingLevel | ( | LogLevel | logLevel | ) |
Definition at line 46 of file logging.cc.
void SetUseSysLog | ( | bool | use_syslog | ) |
Definition at line 36 of file logging.cc.
|
static |
Definition at line 19 of file logging.cc.
|
static |
Definition at line 21 of file logging.cc.
|
static |
Definition at line 20 of file logging.cc.