protlib::log Namespace Reference
[Logging]


Classes

class  logfile

Enumerations

enum  logclass_t {
  ERROR_LOG = 0x10, WARNING_LOG = 0x20, EVENT_LOG = 0x30, INFO_LOG = 0x40,
  DEBUG_LOG = 0x50, EVERY_LOG = 0xF0, LOG_TYPES = 5
}
enum  loglevel_t {
  LOG_EMERG = 0, LOG_ALERT = 1, LOG_CRIT = 2, LOG_NORMAL = 4,
  LOG_UNIMP = 8, LOG_ALL = 15
}
enum  color_t {
  clear, bold_on, italics_on, underline_on,
  inverse_on, strikethrough_on, bold_off, italics_off,
  underline_off, inverse_off, strikethrough_off, black,
  red, green, yellow, blue,
  magenta, cyan, white, fg_default,
  bg_black, bg_red, bg_green, bg_yellow,
  bg_blue, bg_magenta, bg_cyan, bg_white,
  bg_default, num_colors, off = 0
}

Variables

const char *const ANSIcolorcode []
const char * color [num_colors+1]
const char *const logclass_str []
const char *const logseveritylevel_str []
static const pthread_mutex_t initlogmutex
logfileDefaultLog

Variable Documentation

const pthread_mutex_t protlib::log::initlogmutex [static]

Initial value:




 
  
  PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP

Definition at line 55 of file logfile.h.

const char* const protlib::log::logclass_str[]

Initial value:

{
  " ZERO  ",
  "*ERROR*",
  "WARNING",
  " EVENT ",
  " INFO  ",
  " DEBUG ",
  " EXPERT"
}

Definition at line 77 of file logfile.cpp.

Referenced by protlib::log::logfile::logstart().

Initial value:

  {
    "EMERG ",
    "ALERT ",
    "CRITIC",
    "LEVEL3",
    "NORMAL",
    "LEVEL5",
    "LEVEL6",
    "LEVEL7",
    "UNIMP ",
    "LEVEL9",
    "LEVELA",
    "LEVELB",
    "LEVELC",
    "LEVELD",
    "LEVELE",
    "-ALL- "
  }

Definition at line 89 of file logfile.cpp.


Generated on Fri Aug 14 23:40:05 2009 for Ariba by  doxygen 1.5.8