BloombergLP::ball::FileObserver2::FileObserver2

Create a file observer with file logging initially disabled.

Synopsis

Declared in <ball_fileobserver2.h>

explicit
FileObserver2(bslma::Allocator* basicAllocator = 0);

Description

Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. Note that isPublishInLocalTimeEnabled returns false following construction indicating that the timestamp attribute of published records will be written in UTC time (see enablePublishInLocalTime). Also note that a default record format is in effect for file logging (see setLogFileFunctor).

Parameters

NameDescription
basicAllocatormemory allocator; null uses the default