Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::log_level Class Reference

#include <log_message.hpp>

Public Types

enum  values {
  all , debug , info , warn ,
  error , off
}
 Define's the various log levels for reporting.
More...
 

Public Member Functions

 log_level (values v=off)
 
 log_level (int v)
 
 operator int () const
 
string to_string () const
 

Public Attributes

values value
 

Detailed Description

Named scope for log_level enumeration.

Definition at line 21 of file log_message.hpp.

Member Enumeration Documentation

◆ values

Each log level includes all higher levels such that Debug includes Error, but Error does not include Debug.

Enumerator
all 
debug 
info 
warn 
error 
off 

Definition at line 30 of file log_message.hpp.

Constructor & Destructor Documentation

◆ log_level() [1/2]

fc::log_level::log_level ( values v = off)
inline

Definition at line 39 of file log_message.hpp.

39:value(v){}

◆ log_level() [2/2]

fc::log_level::log_level ( int v)
inlineexplicit

Definition at line 40 of file log_message.hpp.

40:value( static_cast<values>(v)){}
values
Define's the various log levels for reporting.

Member Function Documentation

◆ operator int()

fc::log_level::operator int ( ) const
inline

Definition at line 41 of file log_message.hpp.

41{ return value; }

◆ to_string()

string fc::log_level::to_string ( ) const

Definition at line 149 of file log_message.cpp.

149 {
150 switch( value )
151 {
152 case log_level::all:
153 return "all";
154 case log_level::debug:
155 return "debug";
156 case log_level::info:
157 return "info";
158 case log_level::warn:
159 return "warn";
160 case log_level::error:
161 return "error";
162 case log_level::off:
163 return "off";
164 }
165 return "unknown";
166 }

Member Data Documentation

◆ value

values fc::log_level::value

Definition at line 43 of file log_message.hpp.


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