[#BloombergLP-ball-LoggerManager-allocateLogger-0168]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/LoggerManager.adoc[LoggerManager]::allocateLogger
:relfileprefix: ../../../
:mrdocs:

Same as the preceding overload, using the specified `scratchBufferSize`&period;

== Synopsis

Declared in `&lt;ball&lowbar;loggermanager&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/Logger.adoc[Logger]*
allocateLogger(
    xref:BloombergLP/ball/RecordBuffer.adoc[RecordBuffer]* buffer,
    int scratchBufferSize,
    xref:bsl/shared_ptr-0a.adoc[bsl::shared&lowbar;ptr&lt;Observer&gt;] const& observer);
----

== Return Value

address of a modifiable logger managed by this logger manager

== Parameters

[cols="1,4"]
|===
| Name| Description
| *buffer*
| record buffer used to configure the logger
| *scratchBufferSize*
| size of the logger&apos;s message buffer
| *observer*
| observer that receives published log records
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
