This class provides a concrete implementation of the Observer protocol. The publish method of this class outputs the log records that it receives to a FILE * supplied at construction and then flushes the stream.
Synopsis
Declared in <ball_cstdioobserver.h>
class CstdioObserver
: public Observer
Base Classes
Name |
Description |
This class provides a protocol for receiving and processing log record output. |
Type Aliases
Name |
Description |
|
|
|
Member Functions
Name |
Description |
|
Create a cstdio observer that transmits log records to the specified |
|
Destroy this cstdio observer. |
Disable publishing of the timestamp attribute of records in local time by this cstdio 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 cstdio 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 log of this cstdio observer to a functor created according to the specified, possibly URI‐like, scheme‐tagged |
|
Set the formatting functor used when writing records to the log of this cstdio observer to the specified |
|
|
Declare that this type uses a |