|
Logging::BaseLog − |
|
#include <loggingBaseLog.h> Inherited by Logging::Handler [virtual], and Logging::Logger [virtual]. |
|
Classes |
|
struct LogRecord |
|
Public Types |
|
enum Priority { LM_SHUTDOWN = 01, LM_TRACE = 02, LM_DELOUSE = 03, LM_DEBUG = 04, LM_INFO = 010, LM_NOTICE = 020, LM_WARNING = 040, LM_ERROR = 0200, LM_CRITICAL = 0400, LM_ALERT = 01000, LM_EMERGENCY = 02000 } |
|
Public Member Functions |
|
BaseLog () |
|
virtual ~BaseLog () |
|
virtual void log (Priority priority, const std::string &message, const std::string &file, unsigned long line, const std::string &method) |
|
virtual void log (const LogRecord &lr)=0 |
|
virtual std::string getName () const =0 |
|
Public Attributes |
|
loggingStatistics stats |
|
Static Public Attributes |
|
static const std::string FIELD_UNAVAILABLE |
|
static const std::string GLOBAL_LOGGER_NAME |
|
static const std::string ANONYMOUS_LOGGER_NAME |
|
static const std::string STATIC_LOGGER_NAME |
|
Pure abstract logging interface. Includes the bare minimum logging concepts used by ALMA. |
|
enum Logging::BaseLog::Priority This enumeration is intended to be the various logging levels for ALMA software starting with the lowest priority up to the highest. It is based on ACE logging levels. |
|
Enumerator: |
|
LM_SHUTDOWN |
|
LM_TRACE |
|
Messages indicating function-calling sequence. |
|
LM_DELOUSE |
|
LM_DEBUG |
|
Messages that contain information normally of use only when debugging a program |
|
LM_INFO |
|
Informational messages. |
|
LM_NOTICE |
|
Conditions that are not error conditions, but that may require special handling |
|
LM_WARNING |
|
Warning messages. |
|
LM_ERROR |
|
Error messages. |
|
LM_CRITICAL |
|
Critical conditions, such as hard device errors. |
|
LM_ALERT |
|
A condition that should be corrected immediately, such as a corrupted system database |
|
LM_EMERGENCY |
|
A panic condition. This is normally broadcast to all users. |
|
Logging::BaseLog::BaseLog () |
|
virtual Logging::BaseLog::~BaseLog () [inline, virtual] |
|
virtual std::string Logging::BaseLog::getName () const [pure virtual] Retrieves the name of this instance. Exactly what that name is depends on the subclass. |
|
Returns: |
|
The name of this instance |
|
Implemented in Logging::Logger, Logging::LogSvcHandler, and Logging::StdoutHandler. |
|
virtual void Logging::BaseLog::log (Priority priority, const std::string & message, const std::string & file, unsigned long line, const std::string & method) [virtual] This method just delegates to another signature of log adding the timestamp in the process. |
|
Parameters: |
|
priority Priority of the log |
|
Returns: |
|
void |
|
Reimplemented in Logging::Logger. Referenced by Logging::Logger::log(). |
|
virtual void Logging::BaseLog::log (const LogRecord & lr) [pure virtual] It it completely up to the subclass developer to decide exactly what this method does (e.g., writes the log to file, sends it over the network, etc.) |
|
Parameters: |
|
lr log record |
|
Returns: |
|
void |
|
Implemented in Logging::Logger, Logging::LogSvcHandler, and Logging::StdoutHandler. |
|
const std::string Logging::BaseLog::ANONYMOUS_LOGGER_NAME [static] This constant member is the value of the anonymous logger’s name. |
|
const std::string Logging::BaseLog::FIELD_UNAVAILABLE [static] This constant member is the value of a string param of log that cannot be determined for some reason or another. |
|
const std::string Logging::BaseLog::GLOBAL_LOGGER_NAME [static] This constant member is the value of the global logger’s name. |
|
const std::string Logging::BaseLog::STATIC_LOGGER_NAME [static] This constant member is the name of loggers being used from a static context. |
|
loggingStatistics Logging::BaseLog::stats |
|
Generated automatically by Doxygen for ACS-2016.6 C++ API from the source code. |