This class provides a concrete implementation of the Observer protocol. The publish method of this class outputs the log records that it receives to an instance of bsl::ostream supplied at construction.
Synopsis
Declared in <ball_streamobserver.h>
class StreamObserver
: public Observer
Base Classes
Name |
Description |
This class provides a protocol for receiving and processing log record output. |
Type Aliases
Name |
Description |
Alias for the record formatting functor type. |
|
|
|
This |
Member Functions
Name |
Description |
|
Create a stream observer that transmits log records to the specified |
|
Destroy this stream observer. |
Disable publishing of the timestamp attribute of records in local time by this stream observer; henceforth, timestamps will be in UTC time. This method has no effect if publishing in local time is not enabled. |
|
Enable publishing of the timestamp attribute of records in local time by this stream observer. By default, timestamps are published in UTC time. Note that this method also affects timestamps for formatters that use them. |
|
Return the format config of the last successful |
|
Return |
|
|
|
|
Discard any shared reference to a |
Set the formatting functor used when writing records to the stream of this stream observer to a log file functor created according to the specified, possibly URI‐like scheme tagged, |
|
Set the formatting functor used when writing records to the stream of this stream observer to the specified |