Create a file observer that publishes log records to stdout if their severity is at least as severe as the specified stdoutThreshold level, and has file logging initially disabled. The timestamp attribute of published records is written in local time if the specified publishInLocalTime flag is true, and in UTC time otherwise. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. Note that following construction independent default record formats are in effect for stdout and file logging (see setLogFormat).

Synopsis

Declared in <ball_fileobserver.h>

FileObserver(
    Severity::Level stdoutThreshold,
    bool publishInLocalTime,
    bslma::Allocator* basicAllocator = 0);

Created with MrDocs