|
EtcPal
HEAD (unstable)
ETC Platform Abstraction Layer (EtcPal)
|
View other versions:
|
C++ utilities for the log (Logging) module.
This module contains a class Logger which is used to gather log messages dispatched from different portions of an application into a single stream with a unified format. It wraps the C logging module, which provides the core of this functionality, in a convenience layer which can also spawn a background thread to handle large log volumes. See the documentation for the C module for more detailed information on the log format.
Generally a single instance per application is sufficient:
Data Structures | |
| class | LogTimestamp |
| An object representing the current local time with millisecond resolution for logging purposes. More... | |
| class | LogMessageHandler |
| An interface which handles log messages. More... | |
| class | Logger |
| A class for dispatching log messages. More... | |
Enumerations | |
| enum class | LogDispatchPolicy { kDirect , kQueued } |
| Options for the method by which the Logger dispatches log messages. More... | |
|
strong |
Options for the method by which the Logger dispatches log messages.
| Enumerator | |
|---|---|
| kDirect | Log messages propagate directly from Log() calls to output streams (normally only used for testing) |
| kQueued | Log messages are queued and dispatched from another thread (recommended) |