NAP
Public Member Functions | List of all members
LogLevel Class Reference

#include <nap/logger.h>

Public Member Functions

 LogLevel (const std::string &name, int level)
 
 LogLevel (const LogLevel &)=delete
 
LogLeveloperator= (const LogLevel &)=delete
 
int level () const
 
const std::string & name () const
 
bool operator< (const LogLevel &other) const
 
bool operator== (const LogLevel &other) const
 
bool operator<= (const LogLevel &other) const
 
bool operator>= (const LogLevel &other) const
 

Description

A LogLevel defines a tag for log messages associated to define what messages are output in a certain situation or configuration. Levels are ranked according to their level number. A higher number means it will be output in more situations. Examples are fatal error messages, warnings or debug messages.

Constructor & Destructor Documentation

◆ LogLevel() [1/2]

LogLevel ( const std::string &  name,
int  level 
)

Constructor taked the name of the level and a number to indicate where this level is ranked in comparison to other levels

◆ LogLevel() [2/2]

LogLevel ( const LogLevel )
delete

Member Function Documentation

◆ level()

int level ( ) const

◆ name()

const std::string& name ( ) const

◆ operator<()

bool operator< ( const LogLevel other) const

◆ operator<=()

bool operator<= ( const LogLevel other) const

◆ operator=()

LogLevel& operator= ( const LogLevel )
delete

◆ operator==()

bool operator== ( const LogLevel other) const

◆ operator>=()

bool operator>= ( const LogLevel other) const