Open Lighting Architecture 0.10.9
Loading...
Searching...
No Matches
Logging.h File Reference

Detailed Description

Header file for OLA Logging.

Go to the source code of this file.

Classes

class  ola::LogDestination
 The base class for log destinations. More...
 
class  ola::StdErrorLogDestination
 A LogDestination that writes to stderr. More...
 
class  ola::SyslogDestination
 An abstract base of LogDestination that writes to syslog. More...
 
class  ola::UnixSyslogDestination
 A SyslogDestination that writes to Unix syslog. More...
 

Namespaces

namespace  ola
 The namespace containing all OLA symbols.
 

Macros

#define OLA_LOG(level)
 
#define OLA_FATAL   OLA_LOG(ola::OLA_LOG_FATAL)
 
#define OLA_WARN   OLA_LOG(ola::OLA_LOG_WARN)
 
#define OLA_INFO   OLA_LOG(ola::OLA_LOG_INFO)
 
#define OLA_DEBUG   OLA_LOG(ola::OLA_LOG_DEBUG)
 

Enumerations

enum  ola::log_level {
  ola::OLA_LOG_NONE , ola::OLA_LOG_FATAL , ola::OLA_LOG_WARN , ola::OLA_LOG_INFO ,
  ola::OLA_LOG_DEBUG , OLA_LOG_MAX
}
 The OLA log levels. This controls the verbosity of logging. Each level also includes those below it. More...
 
enum  ola::log_output { ola::OLA_LOG_STDERR , ola::OLA_LOG_SYSLOG , OLA_LOG_NULL }
 The destination to write log messages to. More...
 

Functions

void ola::SetLogLevel (log_level level)
 Set the logging level.
 
log_level ola::LogLevel ()
 Fetch the current level of logging.
 
void ola::IncrementLogLevel ()
 Increment the log level by one. The log level wraps to OLA_LOG_NONE.
 
bool ola::InitLoggingFromFlags ()
 Initialize the OLA logging system from flags.
 
bool ola::InitLogging (log_level level, log_output output)
 Initialize the OLA logging system.
 
void ola::InitLogging (log_level level, LogDestination *destination)
 Initialize the OLA logging system using the specified LogDestination.