18 char * lEnvVar = getenv ( aEnvVar );
21 log(
Warning() ,
"No environment variable " ,
Quote( aEnvVar ) ,
" set. Using level " ,
Quote(
"Info" ) ,
" instead." );
55 log (
Warning() ,
"Environment varible has invalid value " ,
Quote( lEnvVar ) ,
". Using level " ,
Quote (
"Info" ) ,
" instead." );
89 #ifndef LOGGING_EXCLUDE_FATAL
101 #ifndef LOGGING_EXCLUDE_FATAL
109 #ifndef LOGGING_EXCLUDE_FATAL
111 #ifndef LOGGING_EXCLUDE_ERROR
123 #ifndef LOGGING_EXCLUDE_FATAL
124 #ifndef LOGGING_EXCLUDE_ERROR
133 #ifndef LOGGING_EXCLUDE_FATAL
135 #ifndef LOGGING_EXCLUDE_ERROR
137 #ifndef LOGGING_EXCLUDE_WARNING
149 #ifndef LOGGING_EXCLUDE_FATAL
150 #ifndef LOGGING_EXCLUDE_ERROR
151 #ifndef LOGGING_EXCLUDE_WARNING
161 #ifndef LOGGING_EXCLUDE_FATAL
163 #ifndef LOGGING_EXCLUDE_ERROR
165 #ifndef LOGGING_EXCLUDE_WARNING
167 #ifndef LOGGING_EXCLUDE_NOTICE
179 #ifndef LOGGING_EXCLUDE_FATAL
180 #ifndef LOGGING_EXCLUDE_ERROR
181 #ifndef LOGGING_EXCLUDE_WARNING
182 #ifndef LOGGING_EXCLUDE_NOTICE
193 #ifndef LOGGING_EXCLUDE_FATAL
195 #ifndef LOGGING_EXCLUDE_ERROR
197 #ifndef LOGGING_EXCLUDE_WARNING
199 #ifndef LOGGING_EXCLUDE_NOTICE
201 #ifndef LOGGING_EXCLUDE_INFO
213 #ifndef LOGGING_EXCLUDE_FATAL
214 #ifndef LOGGING_EXCLUDE_ERROR
215 #ifndef LOGGING_EXCLUDE_WARNING
216 #ifndef LOGGING_EXCLUDE_NOTICE
217 #ifndef LOGGING_EXCLUDE_INFO
229 #ifndef LOGGING_EXCLUDE_FATAL
231 #ifndef LOGGING_EXCLUDE_ERROR
233 #ifndef LOGGING_EXCLUDE_WARNING
235 #ifndef LOGGING_EXCLUDE_NOTICE
237 #ifndef LOGGING_EXCLUDE_INFO
239 #ifndef LOGGING_EXCLUDE_DEBUG
251 #ifndef LOGGING_EXCLUDE_FATAL
252 #ifndef LOGGING_EXCLUDE_ERROR
253 #ifndef LOGGING_EXCLUDE_WARNING
254 #ifndef LOGGING_EXCLUDE_NOTICE
255 #ifndef LOGGING_EXCLUDE_INFO
256 #ifndef LOGGING_EXCLUDE_DEBUG
Helper struct representing the Debug log level to allow us to specialize functions according to their...
Helper struct representing the Error log level to allow us to specialize functions according to their...
Helper struct representing the Fatal log level to allow us to specialize functions according to their...
Helper struct representing the Info log level to allow us to specialize functions according to their ...
Helper struct representing the Notice log level to allow us to specialize functions according to thei...
Helper struct representing the Warning log level to allow us to specialize functions according to the...
static const bool mFalse
Define a static const member variable to have a value of false so that we can safely return a const r...
static bool mLoggingIncludesNotice
static bool storing whether the Notice level is to be included in the log output
static bool mLoggingIncludesWarning
static bool storing whether the Warning level is to be included in the log output
static bool mLoggingIncludesFatal
static bool storing whether the Fatal level is to be included in the log output
static bool mLoggingIncludesError
static bool storing whether the Error level is to be included in the log output
static std::mutex mMutex
Define a static Mutex lock for thread safe logging.
static bool mLoggingIncludesDebug
static bool storing whether the Debug level is to be included in the log output
static bool mLoggingIncludesInfo
static bool storing whether the Info level is to be included in the log output
static const bool mTrue
Define a static const member variable to have a value of true so that we can safely return a const re...
_Quote< T > Quote(const T &aT)
void setLogLevelTo(const FatalLevel &)
Function to specify, at runtime, that only messages with a severity level above Fatal should be logge...
const bool & LoggingIncludes(const FatalLevel &)
Function to check at runtime whether the level Fatal is to be included in the log output.
void log(FatalLevel &aFatal, const T0 &aArg0)
Function to add a log entry at Fatal level.
std::mutex & GetLoggingMutex()
Function to retrieve the mutex lock used by the logger.
void disableLogging()
Function to disable all logging levels.
void setLogLevelFromEnvironment(const char *aEnvVar)
Function to specify that the logging level should be retrieved from an environment variable.