[#BloombergLP-ball-Log_Stream-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/Log_Stream.adoc[Log&lowbar;Stream]::Log&lowbar;Stream
:relfileprefix: ../../../
:mrdocs:

Create a logging stream for the given category, location, and severity&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
Log&lowbar;Stream(
    xref:BloombergLP/ball/Category.adoc[Category] const* category,
    std::string&lowbar;view const& fileName,
    int lineNumber,
    int severity);
----

== Description

Create a logging stream that holds (1) the specified `category` and `severity`, (2) a record that is created from the specified `fileName` and `lineNumber`, and (3) an `bsl&colon;&colon;ostream` to which the log message is put&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *category*
| category to which the record will be logged
| *fileName*
| source file name attribute for the record
| *lineNumber*
| source line number attribute for the record
| *severity*
| severity at which the record will be logged
|===


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