allocateLogger overloads

Synopses

Declared in <ball_loggermanager.h>

Return the address of a modifiable logger managed by this logger manager configured with the specified record buffer. Optionally specify a scratchBufferSize for the logger's user‐accessible message buffer. If scratchBufferSize is not specified, the value configured at construction is used. Note that this method is primarily intended for use in multi‐threaded applications, but can be used to partition logging streams even within a single thread. Also note that ownership of buffer is not transferred, and hence, will not be destroyed (or otherwise affected) after the logger is deallocated.

Same as the preceding overload, using the specified scratchBufferSize.

Logger*
allocateLogger(
    RecordBuffer* buffer,
    int scratchBufferSize);

Return the address of a modifiable logger managed by this logger manager having the specified observer that receives published log records and configured with the specified record buffer. Optionally specify a scratchBufferSize for the logger's user‐accessible message buffer. If scratchBufferSize is not specified, the value configured at construction is used. Note that this method is primarily intended for use in multi‐threaded applications, but can be used to partition logging streams even within a single thread. Also note that ownership of buffer and observer is not transferred, and hence, will not be destroyed (or otherwise affected) after the logger is deallocated.

Return the address of a modifiable logger managed by this logger manager having the specified observer that receives published log records and configured with the specified record buffer. Optionally specify a scratchBufferSize for the logger's user‐accessible message buffer. If scratchBufferSize is not specified, the value configured at construction is used. Note that this method is primarily intended for use in multi‐threaded applications, but can be used to partition logging streams even within a single thread. Also note that ownership of buffer and observer is not transferred, and hence, will not be destroyed (or otherwise affected) after the logger is deallocated.

Logger*
allocateLogger(
    RecordBuffer* buffer,
    Observer* observer);

Same as the preceding overload, using the specified scratchBufferSize.

Logger*
allocateLogger(
    RecordBuffer* buffer,
    int scratchBufferSize,
    bsl::shared_ptr<Observer> const& observer);

Same as the preceding deprecated overload, using the specified scratchBufferSize.

Logger*
allocateLogger(
    RecordBuffer* buffer,
    int scratchBufferSize,
    Observer* observer);

Created with MrDocs