FD.io VPP  v21.01.1
Vector Packet Processing
VOM::log_t Class Reference

Ideally we'd use the boost logger but that is not prevelent in many distros. More...

Data Structures

class  entry
 An entry in the log. More...
 
class  handler
 

Public Member Functions

 log_t (handler *h)
 Construct a logger. More...
 
 log_t ()
 
const log_level_tlevel () const
 The configured level. More...
 
void set (const log_level_t &level)
 set the logging level More...
 
void set (handler *h)
 set a file to receive the logging data More...
 
void register_handler (handler &h)
 Register a log handler to receive the log output. More...
 

Detailed Description

Ideally we'd use the boost logger but that is not prevelent in many distros.

So something simple here instead.

Definition at line 50 of file logger.hpp.

Constructor & Destructor Documentation

◆ log_t() [1/2]

VOM::log_t::log_t ( handler h)

Construct a logger.

◆ log_t() [2/2]

VOM::log_t::log_t ( )

Definition at line 44 of file logger.cpp.

Member Function Documentation

◆ level()

const log_level_t & VOM::log_t::level ( ) const

The configured level.

Definition at line 76 of file logger.cpp.

+ Here is the caller graph for this function:

◆ register_handler()

void VOM::log_t::register_handler ( handler h)

Register a log handler to receive the log output.

◆ set() [1/2]

void VOM::log_t::set ( const log_level_t level)

set the logging level

Definition at line 51 of file logger.cpp.

+ Here is the call graph for this function:

◆ set() [2/2]

void VOM::log_t::set ( handler h)

set a file to receive the logging data

Definition at line 57 of file logger.cpp.

+ Here is the call graph for this function:

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