FD.io VPP  v18.10-34-gcce845e
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

VOM::log_t::log_t ( handler h)

Construct a logger.

VOM::log_t::log_t ( )

Definition at line 44 of file logger.cpp.

Member Function Documentation

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:

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

Register a log handler to receive the log output.

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:

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: