Logging category.
More...
#include <B2BITS_LogCategory.h>
|
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...
|
|
Logging category.
Use Utils::Log::LogSystem to create category.
Utils::Log::LogCategory::LogCategory |
( |
std::size_t |
id | ) |
|
|
protected |
Utils::Log::LogCategory::LogCategory |
( |
std::size_t |
id, |
|
|
const std::string & |
name |
|
) |
| |
|
protected |
virtual Utils::Log::LogCategory::~LogCategory |
( |
| ) |
|
|
protectedvirtual |
Utils::Log::LogCategory::LogCategory |
( |
const LogCategory & |
| ) |
|
|
protected |
Copy constructor is forbidden.
void Utils::Log::LogCategory::debug |
( |
const std::string & |
data | ) |
|
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.
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.
Utils::LogImpl::LogCategoryImpl* Utils::Log::LogCategory::getImpl |
( |
| ) |
const |
|
protected |
- Returns
- Implementation class.
bool Utils::Log::LogCategory::isDebugOn |
( |
| ) |
const |
|
inline |
bool Utils::Log::LogCategory::isErrorOn |
( |
| ) |
const |
|
inline |
bool Utils::Log::LogCategory::isFatalOn |
( |
| ) |
const |
|
inline |
bool Utils::Log::LogCategory::isNoteOn |
( |
| ) |
const |
|
inline |
bool Utils::Log::LogCategory::isWarnOn |
( |
| ) |
const |
|
inline |
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
-
data | Message to write to log. |
- Note
- synchronized.
Assignment operator is forbidden.
void Utils::Log::LogCategory::setLevels |
( |
const Log::Levels & |
levels | ) |
|
Set Log levels.
- Parameters
-
levels | Log 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
-
data | Message to write to log. |
- Note
- synchronized.
friend class LogImpl::LogSystemImpl |
|
friend |