![]() |
Qore logger_bin Module 2.2.1
|
This is the base class for logger levels. More...
#include <QC_LoggerLevel.dox.h>
Public Member Functions | |
| constructor (int code, string level) | |
| Creates the level with the supplied arguments. | |
| string | getStr () |
| Gets the level string. | |
| int | getValue () |
| Gets the level code value. | |
| bool | isEqual (LoggerLevel other) |
| Compares two logger levels. | |
| bool | isGreaterOrEqual (LoggerLevel other) |
| Compares logger levels. | |
Static Public Member Functions | |
| static LoggerLevel | getLevel (int level, *LoggerLevel default_level) |
| Converts the input argument to a level. | |
| static LoggerLevel | getLevel (string level_str, *LoggerLevel default_level) |
| Converts the input argument to a level. | |
| static LoggerLevel | getLevelAll () |
| Returns an ALL Level. | |
| static LoggerLevel | getLevelDebug () |
| Returns a DEBUG Level. | |
| static LoggerLevel | getLevelDetail () |
| Returns a DETAIL Level. | |
| static LoggerLevel | getLevelError () |
| Returns an ERROR Level. | |
| static LoggerLevel | getLevelFatal () |
| Returns a FATAL Level. | |
| static LoggerLevel | getLevelInfo () |
| Returns an INFO Level. | |
| static LoggerLevel | getLevelOff () |
| Returns an OFF Level. | |
| static LoggerLevel | getLevelTrace () |
| Returns a TRACE Level. | |
| static LoggerLevel | getLevelWarn () |
| Returns a WARN Level. | |
| static *LoggerLevel | getNextHigherLevel (int level) |
| Returns closest higher logger level. | |
| static *LoggerLevel | getNextLowerLevel (int level) |
| Returns closest lower logger level. | |
This is the base class for logger levels.
This class stores the integer and string log level values
Creates the level with the supplied arguments.
| code | integer log level value |
| level | string log level value |
|
static |
Converts the input argument to a level.
Return value is either instantiated or used the existing one if there is any.
| level | the input level |
| default_level | value to return if conversion is not possible. |
| LOGGER-ERROR | if defaultLevel is nothing and level not found |
|
static |
Converts the input argument to a level.
Return value is either instantiated or used the existing one if there is any.
| level_str | the string input level |
| default_level | value to return if conversion is not possible. |
| LOGGER-ERROR | if default_level is nothing and level_str not found |
|
static |
Returns closest higher logger level.
| level | the logger level |
Loggerlevel or NOTHING if there is no higher level| LOGGER-ERROR | if level not found |
|
static |
Returns closest lower logger level.
| level | the logger level |
Loggerlevel or NOTHING if there is no lower level| LOGGER-ERROR | if level not found |
| bool Qore::Logger::LoggerLevel::isEqual | ( | LoggerLevel | other | ) |
Compares two logger levels.
| other | the other level to compares |
| bool Qore::Logger::LoggerLevel::isGreaterOrEqual | ( | LoggerLevel | other | ) |
Compares logger levels.
| other | the other level to compares |