B2BITS FIX Antenna C++ 2.33.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
Utils::Log::LogCategory Class Reference

Logging category. More...

#include <B2BITS_LogCategory.h>

Public Member Functions

void debug (const std::string &data)
 Writes logging record to the specified for this category devices.
 
void error (const std::string &data)
 Writes logging record to the specified for this category devices.
 
void fatal (const std::string &data)
 Writes logging record to the specified for this category devices.
 
bool isDebugOn () const
 
bool isErrorOn () const
 
bool isFatalOn () const
 
bool isNoteOn () const
 
bool isTraceOn () const
 
bool isWarnOn () const
 
std::string const & name () const
 Returns name of the category.
 
void note (const std::string &data)
 Writes logging record to the specified for this category devices.
 
void setLevels (const Log::Levels &levels)
 Set Log levels.
 
void trace (const std::string &data)
 Writes logging record to the specified for this category devices.
 
void warn (const std::string &data)
 Writes logging record to the specified for this category devices.
 

Protected Member Functions

Utils::LogImpl::LogCategoryImpl * getImpl () const
 
 LogCategory (const LogCategory &)
 Copy constructor is forbidden.
 
 LogCategory (std::size_t id)
 Constructor.
 
 LogCategory (std::size_t id, const std::string &name)
 Constructor.
 
LogCategoryoperator= (const LogCategory &right)
 Assignment operator is forbidden.
 
virtual ~LogCategory ()
 Destructor.
 

Detailed Description

Logging category.

Use Utils::Log::LogSystem to create category.

Constructor & Destructor Documentation

◆ LogCategory() [1/3]

Utils::Log::LogCategory::LogCategory ( std::size_t id)
protected

Constructor.

◆ LogCategory() [2/3]

Utils::Log::LogCategory::LogCategory ( std::size_t id,
const std::string & name )
protected

Constructor.

◆ ~LogCategory()

virtual Utils::Log::LogCategory::~LogCategory ( )
protectedvirtual

Destructor.

◆ LogCategory() [3/3]

Utils::Log::LogCategory::LogCategory ( const LogCategory & )
protected

Copy constructor is forbidden.

Member Function Documentation

◆ debug()

void Utils::Log::LogCategory::debug ( const std::string & data)

Writes logging record to the specified for this category devices.

Parameters
dataMessage to write to log.
Note
synchronized.

◆ error()

void Utils::Log::LogCategory::error ( const std::string & data)

Writes logging record to the specified for this category devices.

Parameters
dataMessage to write to log.
Note
synchronized.

◆ fatal()

void Utils::Log::LogCategory::fatal ( const std::string & data)

Writes logging record to the specified for this category devices.

Parameters
dataMessage to write to log.
Note
synchronized.

◆ getImpl()

Utils::LogImpl::LogCategoryImpl * Utils::Log::LogCategory::getImpl ( ) const
protected
Returns
Implementation class.

◆ isDebugOn()

bool Utils::Log::LogCategory::isDebugOn ( ) const
inline
Returns
true if certain level is turned on.

◆ isErrorOn()

bool Utils::Log::LogCategory::isErrorOn ( ) const
inline
Returns
true if certain level is turned on.

◆ isFatalOn()

bool Utils::Log::LogCategory::isFatalOn ( ) const
inline
Returns
true if certain level is turned on.

◆ isNoteOn()

bool Utils::Log::LogCategory::isNoteOn ( ) const
inline
Returns
true if certain level is turned on.

◆ isTraceOn()

bool Utils::Log::LogCategory::isTraceOn ( ) const
inline
Returns
true if certain level is turned on.

◆ isWarnOn()

bool Utils::Log::LogCategory::isWarnOn ( ) const
inline
Returns
true if certain level is turned on.

◆ name()

std::string const & Utils::Log::LogCategory::name ( ) const

Returns name of the category.

◆ note()

void Utils::Log::LogCategory::note ( const std::string & data)

Writes logging record to the specified for this category devices.

Parameters
dataMessage to write to log.
Note
synchronized.

◆ operator=()

LogCategory & Utils::Log::LogCategory::operator= ( const LogCategory & right)
protected

Assignment operator is forbidden.

◆ setLevels()

void Utils::Log::LogCategory::setLevels ( const Log::Levels & levels)

Set Log levels.

Parameters
levelsLog level (whether certain level is turn on/off).

◆ trace()

void Utils::Log::LogCategory::trace ( const std::string & data)

Writes logging record to the specified for this category devices.

Parameters
dataMessage to write to log.
Note
synchronized.

◆ warn()

void Utils::Log::LogCategory::warn ( const std::string & data)

Writes logging record to the specified for this category devices.

Parameters
dataMessage to write to log.
Note
synchronized.