xrpld
Loading...
Searching...
No Matches
beast::NullJournalSink Class Reference
Inheritance diagram for beast::NullJournalSink:
Collaboration diagram for beast::NullJournalSink:

Public Member Functions

 NullJournalSink ()
 ~NullJournalSink () override=default
bool active (Severity) const override
 Returns true if text at the passed severity produces output.
bool console () const override
 Returns true if a message is also written to the Output Window (MSVC).
void console (bool) override
 Set whether messages are also written to the Output Window (MSVC).
Severity threshold () const override
 Returns the minimum severity level this sink will report.
void threshold (Severity) override
 Set the minimum severity this sink will report.
void write (Severity, std::string const &) override
 Write text to the sink at the specified severity.
void writeAlways (Severity, std::string const &) override
 Bypass filter and write text to the sink at the specified severity.

Private Attributes

Severity thresh_
bool console_

Detailed Description

Definition at line 12 of file beast_Journal.cpp.

Constructor & Destructor Documentation

◆ NullJournalSink()

beast::NullJournalSink::NullJournalSink ( )

Definition at line 15 of file beast_Journal.cpp.

◆ ~NullJournalSink()

beast::NullJournalSink::~NullJournalSink ( )
overridedefault

Member Function Documentation

◆ active()

bool beast::NullJournalSink::active ( Severity level) const
nodiscardoverridevirtual

Returns true if text at the passed severity produces output.

Reimplemented from beast::Journal::Sink.

Definition at line 22 of file beast_Journal.cpp.

◆ console() [1/2]

bool beast::NullJournalSink::console ( ) const
nodiscardoverridevirtual

Returns true if a message is also written to the Output Window (MSVC).

Reimplemented from beast::Journal::Sink.

Definition at line 28 of file beast_Journal.cpp.

◆ console() [2/2]

void beast::NullJournalSink::console ( bool output)
overridevirtual

Set whether messages are also written to the Output Window (MSVC).

Reimplemented from beast::Journal::Sink.

Definition at line 34 of file beast_Journal.cpp.

◆ threshold() [1/2]

Severity beast::NullJournalSink::threshold ( ) const
nodiscardoverridevirtual

Returns the minimum severity level this sink will report.

Reimplemented from beast::Journal::Sink.

Definition at line 39 of file beast_Journal.cpp.

◆ threshold() [2/2]

void beast::NullJournalSink::threshold ( Severity thresh)
overridevirtual

Set the minimum severity this sink will report.

Reimplemented from beast::Journal::Sink.

Definition at line 45 of file beast_Journal.cpp.

◆ write()

void beast::NullJournalSink::write ( Severity level,
std::string const & text )
overridevirtual

Write text to the sink at the specified severity.

A conforming implementation will not write the text if the passed level is below the current threshold().

Implements beast::Journal::Sink.

Definition at line 50 of file beast_Journal.cpp.

◆ writeAlways()

void beast::NullJournalSink::writeAlways ( Severity level,
std::string const & text )
overridevirtual

Bypass filter and write text to the sink at the specified severity.

Always write the message, but maintain the same formatting as if it passed through a level filter.

Parameters
levelLevel to display in message.
textText to write to sink.

Implements beast::Journal::Sink.

Definition at line 55 of file beast_Journal.cpp.

Member Data Documentation

◆ thresh_

Severity beast::Journal::Sink::thresh_
privateinherited

Definition at line 103 of file Journal.h.

◆ console_

bool beast::Journal::Sink::console_
privateinherited

Definition at line 104 of file Journal.h.