[#BloombergLP-bslim-Printer-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslim.adoc[bslim]::xref:BloombergLP/bslim/Printer.adoc[Printer]::Printer
:relfileprefix: ../../../
:mrdocs:

Create a `Printer` that formats output to the specified stream&period;

== Synopsis

Declared in `&lt;bslim&lowbar;printer&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
Printer(
    std::ostream* stream,
    int level,
    int spacesPerLevel);
----

== Description

Create a `Printer` object that will print to the specified `stream` in a format dictated by the values of the specified `level` and `spacesPerLevel`, as per the contract of the standard BDE `print` method&period; The behavior is undefined unless `stream` is valid&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *stream*
| output stream to which this object prints
| *level*
| indentation level as defined by the BDE `print` contract
| *spacesPerLevel*
| spaces per indentation level&semi; negative for single&hyphen;line output
|===


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