This class provides a common implementation of formatting‐related methods for observer components that support scheme‐based log record formatting. It manages a log record formatter, format configuration strings, and time zone preferences. This implementation is intended to be used as a data member in concrete observer classes to provide consistent formatting behavior across different observer types.
Synopsis
Declared in <ball_observerformatterimp.h>
class ObserverFormatterImp;
Type Aliases
Name |
Description |
|
|
This |
Member Functions
Name |
Description |
|
Create a |
Format the specified log |
|
Return the currently active format configuration string of this object. |
|
Return the currently active time zone default of this object. |
|
Return the allocator used by this object to supply memory. Note that if no allocator was supplied at construction the default allocator in effect at construction is used. |
|
Set the log record format specifications for this object according to the specified |
|
Set the formatting functor used when writing records to the specified |
|
Set the default time zone used for timestamps that have no timezone preference specified in the format config string. This method recreates the formatter used with the new timezone setting and the last successfully‐set format config string. Note that (at the time of writing) the printf‐style format strings do not have syntax to specify the time zone so for such‐configured formatters all timestamps will use this time zone default. |
Created with MrDocs