Base::LogLevel Class Reference

LogLevel helper class. More...

#include <Console.h>

Public Member Functions

bool isEnabled (int l)
 
int level () const
 
 LogLevel (const char *tag, bool print_tag=true, int print_src=0, bool print_time=false, bool add_eol=true, bool refresh=false)
 
std::stringstream & prefix (std::stringstream &str, const char *src, int line)
 

Public Attributes

bool add_eol
 
intlvl
 
int print_src
 
bool print_tag
 
bool print_time
 
bool refresh
 
std::string tag
 

Detailed Description

LogLevel helper class.

Constructor & Destructor Documentation

◆ LogLevel()

Base::LogLevel::LogLevel ( const char *  tag,
bool  print_tag = true,
int  print_src = 0,
bool  print_time = false,
bool  add_eol = true,
bool  refresh = false 
)

Member Function Documentation

◆ isEnabled()

◆ level()

int Base::LogLevel::level ( ) const

◆ prefix()

std::stringstream & LogLevel::prefix ( std::stringstream &  str,
const char *  src,
int  line 
)

Member Data Documentation

◆ add_eol

bool Base::LogLevel::add_eol

◆ lvl

int& Base::LogLevel::lvl

◆ print_src

int Base::LogLevel::print_src

Referenced by prefix().

◆ print_tag

bool Base::LogLevel::print_tag

Referenced by prefix().

◆ print_time

bool Base::LogLevel::print_time

Referenced by prefix().

◆ refresh

◆ tag


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