Quick Links:

bal | bbl | bdl | bsl

Public Types | Static Public Member Functions

bsls::LogSeverity Struct Reference

#include <bsls_logseverity.h>

List of all members.

Public Types

enum  Enum {
  e_FATAL = 0, e_ERROR = 1, e_WARN = 2, e_INFO = 3,
  e_DEBUG = 4, e_TRACE = 5
}
 

Enumeration of logging severity levels.

More...

Static Public Member Functions

static const char * toAscii (LogSeverity::Enum value)

Detailed Description

This struct provides a namespace for enumerating the set of logging severity levels used in the bsls logging framework (see bsls_log). See Enum in the TYPES sub-section for details.

See Component bsls_logseverity


Member Enumeration Documentation

Enumerator:
e_FATAL 

a condition that will (likely) cause a crash

e_ERROR 

a condition that will cause incorrect behavior

e_WARN 

a potentially problematic condition

e_INFO 

data about the running process

e_DEBUG 

information useful while debugging

e_TRACE 

execution trace data


Member Function Documentation

static const char* bsls::LogSeverity::toAscii ( LogSeverity::Enum  value  )  [static]

Return the non-modifiable string representation corresponding to the specified enumeration value, if it exists, and a unique (error) string otherwise. The string representation of value matches its corresponding enumerator name with the "e_" prefix elided. For example:

will print the following on standard output:

          DEBUG

Note that specifying a value that does not match any of the enumerators will result in a string representation that is distinct from any of those corresponding to the enumerators, but is otherwise unspecified.


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