B2BITS FIX Antenna C++  2.27.1
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. More...
 
void error (const std::string &data)
 Writes logging record to the specified for this category devices. More...
 
void fatal (const std::string &data)
 Writes logging record to the specified for this category devices. More...
 
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. More...
 
void note (const std::string &data)
 Writes logging record to the specified for this category devices. More...
 
void setLevels (const Log::Levels &levels)
 Set Log levels. More...
 
void trace (const std::string &data)
 Writes logging record to the specified for this category devices. More...
 
void warn (const std::string &data)
 Writes logging record to the specified for this category devices. More...
 

Protected Member Functions

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

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.

References Utils::Log::LS_DEBUG.

◆ isErrorOn()

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

References Utils::Log::LS_ERROR.

◆ isFatalOn()

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

References Utils::Log::LS_FATAL.

◆ isNoteOn()

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

References Utils::Log::LS_NOTE.

◆ isTraceOn()

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

References Utils::Log::LS_TRACE.

◆ isWarnOn()

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

References Utils::Log::LS_WARN.

◆ 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.