8#ifndef INCLUDED_BSLS_LOG
9#define INCLUDED_BSLS_LOG
262#include <bsls_atomicoperations.h>
295 const char *message);
299 static bsls::AtomicOperations::AtomicTypes::Pointer
305 static bsls::AtomicOperations::AtomicTypes::Int
335 const char *message);
354 const char *message);
376 const char *message);
387 const char *message);
398#define BSLS_LOG(severity, ...) \
400 if (severity <= BloombergLP::bsls::Log::severityThreshold()) { \
401 BloombergLP::bsls::Log::logFormattedMessage((severity), \
408#define BSLS_LOG_FATAL(...) BSLS_LOG(BloombergLP::bsls::LogSeverity::e_FATAL,\
410#define BSLS_LOG_ERROR(...) BSLS_LOG(BloombergLP::bsls::LogSeverity::e_ERROR,\
412#define BSLS_LOG_WARN(...) BSLS_LOG(BloombergLP::bsls::LogSeverity::e_WARN, \
414#define BSLS_LOG_INFO(...) BSLS_LOG(BloombergLP::bsls::LogSeverity::e_INFO, \
416#define BSLS_LOG_DEBUG(...) BSLS_LOG(BloombergLP::bsls::LogSeverity::e_DEBUG,\
418#define BSLS_LOG_TRACE(...) BSLS_LOG(BloombergLP::bsls::LogSeverity::e_TRACE,\
421#define BSLS_LOG_SIMPLE(severity, msg) \
422 (BloombergLP::bsls::Log::logMessage((severity), __FILE__, __LINE__, (msg)))
450 return PointerCastUtil::cast<LogMessageHandler>(
458 &s_logMessageHandler, PointerCastUtil::cast<void *>(handler));
Definition bsls_log.h:279
static bsls::LogSeverity::Enum severityThreshold()
Definition bsls_log.h:468
static Log::LogMessageHandler logMessageHandler()
Return the address of the currently installed log message handler.
Definition bsls_log.h:448
static void platformDefaultMessageHandler(bsls::LogSeverity::Enum severity, const char *file, int line, const char *message)
static void logMessage(bsls::LogSeverity::Enum severity, const char *file, int line, const char *message)
Definition bsls_log.h:437
static void logFormattedMessage(bsls::LogSeverity::Enum severity, const char *file, int line, const char *format,...)
static void stdoutMessageHandler(bsls::LogSeverity::Enum severity, const char *file, int line, const char *message)
static void setSeverityThreshold(bsls::LogSeverity::Enum severity)
Definition bsls_log.h:462
void(* LogMessageHandler)(bsls::LogSeverity::Enum severity, const char *file, int line, const char *message)
Definition bsls_log.h:292
static void stderrMessageHandler(bsls::LogSeverity::Enum severity, const char *file, int line, const char *message)
static void setLogMessageHandler(Log::LogMessageHandler handler)
Install the specified handler as the current log message handler.
Definition bsls_log.h:455
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bdlt_iso8601util.h:691
static void * getPtrAcquire(AtomicTypes::Pointer const *atomicPtr)
Definition bsls_atomicoperations.h:2312
static void setIntRelaxed(AtomicTypes::Int *atomicInt, int value)
Definition bsls_atomicoperations.h:1552
static int getIntRelaxed(AtomicTypes::Int const *atomicInt)
Definition bsls_atomicoperations.h:1534
static void setPtrRelease(AtomicTypes::Pointer *atomicPtr, void *value)
Definition bsls_atomicoperations.h:2345
Enum
Definition bsls_logseverity.h:125