21 LogSeverity LogSeverity::Severe() {
22 return LogSeverity(-4);
24 LogSeverity LogSeverity::Error() {
25 return LogSeverity(-3);
27 LogSeverity LogSeverity::Warning() {
28 return LogSeverity(-2);
30 LogSeverity LogSeverity::Info() {
31 return LogSeverity(-1);
33 LogSeverity LogSeverity::Log() {
34 return LogSeverity(0);
36 LogSeverity LogSeverity::Debug(
int debugLevel) {
37 return LogSeverity(debugLevel);
44 int LogSeverity::toInt()
const {
55 return _severity == other._severity;
58 return _severity != other._severity;
61 return _severity > other._severity;
64 return _severity >= other._severity;
67 return _severity < other._severity;
70 return _severity <= other._severity;
Utility functions for parsing numbers from strings.
Definition: compare_numbers.h:20
bool operator!=(const LogSeverity other) const
Returns true if this is not exactly as severe as other.
Definition: log_severity-inl.h:57
bool operator>=(const LogSeverity other) const
Returns true if this is no less severe than other.
Definition: log_severity-inl.h:69
LogSeverity lessSevere() const
Returns a LogSeverity object that is one unit "less severe" than this one.
Definition: log_severity-inl.h:50
static LogSeverity cast(int)
Casts an integer to a severity.
Definition: log_severity-inl.h:40
bool operator<(const LogSeverity other) const
Returns true if this is less severe than other.
Definition: log_severity-inl.h:60
bool operator==(const LogSeverity other) const
Returns true if this is exactly as severe as other.
Definition: log_severity-inl.h:54
LogSeverity moreSevere() const
Returns a LogSeverity object that is one unit "more severe" than this one.
Definition: log_severity-inl.h:47
bool operator>(const LogSeverity other) const
Returns true if this is more severe than other.
Definition: log_severity-inl.h:66
Representation of the severity / priority of a log message.
Definition: log_severity.h:33
bool operator<=(const LogSeverity other) const
Returns true if this is no more severe than other.
Definition: log_severity-inl.h:63