21 #include "mongo/base/string_data.h"
22 #include "mongo/client/export_macros.h"
54 inline int toInt()
const;
71 inline std::string toString()
const;
94 inline bool operator==(
const LogSeverity other)
const;
97 inline bool operator!=(
const LogSeverity other)
const;
100 inline bool operator<(
const LogSeverity other)
const;
103 inline bool operator<=(
const LogSeverity other)
const;
106 inline bool operator>(
const LogSeverity other)
const;
109 inline bool operator>=(
const LogSeverity other)
const;
112 explicit LogSeverity(
int severity) : _severity(severity) {}
127 MONGO_CLIENT_API std::ostream& MONGO_CLIENT_FUNC operator<<(std::ostream& os,
LogSeverity severity);
132 #include "mongo/logger/log_severity-inl.h"
A StringData object wraps a 'const string&' or a 'const char*' without copying its contents...
Definition: string_data.h:43
Utility functions for parsing numbers from strings.
Definition: compare_numbers.h:20
Representation of the severity / priority of a log message.
Definition: log_severity.h:33