Logging category.
More...
#include <B2BITS_LogCategory.h>
|
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.
|
|
Logging category.
Use Utils::Log::LogSystem to create category.
◆ LogCategory() [1/3]
Utils::Log::LogCategory::LogCategory |
( |
std::size_t | id | ) |
|
|
protected |
◆ LogCategory() [2/3]
Utils::Log::LogCategory::LogCategory |
( |
std::size_t | id, |
|
|
const std::string & | name ) |
|
protected |
◆ ~LogCategory()
virtual Utils::Log::LogCategory::~LogCategory |
( |
| ) |
|
|
protectedvirtual |
◆ LogCategory() [3/3]
Utils::Log::LogCategory::LogCategory |
( |
const LogCategory & | | ) |
|
|
protected |
Copy constructor is forbidden.
◆ debug()
void Utils::Log::LogCategory::debug |
( |
const std::string & | data | ) |
|
Writes logging record to the specified for this category devices.
- Parameters
-
data | Message 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
-
data | Message 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
-
data | Message 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
-
data | Message to write to log. |
- Note
- synchronized.
◆ operator=()
Assignment operator is forbidden.
◆ setLevels()
void Utils::Log::LogCategory::setLevels |
( |
const Log::Levels & | levels | ) |
|
Set Log levels.
- Parameters
-
levels | Log 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
-
data | Message 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
-
data | Message to write to log. |
- Note
- synchronized.