B2BITS FIX Antenna HFT  1.0.15
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Friends | 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
 Returns true if the certain level is turned on. More...
 
bool isErrorOn () const
 Returns true if the certain level is turned on. More...
 
bool isFatalOn () const
 Returns true if the certain level is turned on. More...
 
bool isNoteOn () const
 Returns true if the certain level is turned on. More...
 
bool isWarnOn () const
 Returns true if the certain level is turned on. More...
 
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 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...
 
const LogCategoryoperator= (const LogCategory &right)
 Assignment operator is forbidden. More...
 
virtual ~LogCategory ()
 Destructor. More...
 

Friends

class LogImpl::LogSystemImpl
 

Detailed Description

Logging category.

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

Constructor & Destructor Documentation

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

Constructor.

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

Constructor.

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

Destructor.

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

Copy constructor is forbidden.

Member Function Documentation

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.
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.
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.
Utils::LogImpl::LogCategoryImpl* Utils::Log::LogCategory::getImpl ( ) const
protected
Returns
Implementation class.
bool Utils::Log::LogCategory::isDebugOn ( ) const
inline

Returns true if the certain level is turned on.

References Utils::Log::LS_DEBUG.

bool Utils::Log::LogCategory::isErrorOn ( ) const
inline

Returns true if the certain level is turned on.

References Utils::Log::LS_ERROR.

bool Utils::Log::LogCategory::isFatalOn ( ) const
inline

Returns true if the certain level is turned on.

References Utils::Log::LS_FATAL.

bool Utils::Log::LogCategory::isNoteOn ( ) const
inline

Returns true if the certain level is turned on.

References Utils::Log::LS_NOTE.

bool Utils::Log::LogCategory::isWarnOn ( ) const
inline

Returns true if the certain level is turned on.

References Utils::Log::LS_WARN.

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

Returns name of the category.

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.
const LogCategory& Utils::Log::LogCategory::operator= ( const LogCategory right)
protected

Assignment operator is forbidden.

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

Set Log levels.

Parameters
levelsLog level (whether certain level is turn on/off).
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.

Friends And Related Function Documentation

friend class LogImpl::LogSystemImpl
friend