claw 1.9.0
 
Loading...
Searching...
No Matches
claw::log_level Class Reference

Set the level of the next message for logger_system::operator<<(). More...

#include <log_level.hpp>

Public Member Functions

 log_level (int lvl)
 Constructor.
 
 log_level (int lvl, const std::string &s)
 Constructor.
 
int get () const
 Get the level value.
 
std::string get_string () const
 Get the prefix.
 

Detailed Description

Set the level of the next message for logger_system::operator<<().

Remarks
Levels from 0 to 15 are reserved to claw.

Definition at line 57 of file log_level.hpp.

Constructor & Destructor Documentation

◆ log_level() [1/2]

claw::log_level::log_level ( int lvl)

Constructor.

Parameters
lvlThe value of this level.

Definition at line 45 of file log_level.cpp.

◆ log_level() [2/2]

claw::log_level::log_level ( int lvl,
const std::string & s )

Constructor.

Parameters
lvlThe value of this level.
sThe messages prefix.

Definition at line 54 of file log_level.cpp.

Member Function Documentation

◆ get()

int claw::log_level::get ( ) const

Get the level value.

Definition at line 62 of file log_level.cpp.

◆ get_string()

std::string claw::log_level::get_string ( ) const

Get the prefix.

Definition at line 70 of file log_level.cpp.


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