rippled
Public Member Functions | Private Attributes | List of all members
beast::NullJournalSink Class Reference
Inheritance diagram for beast::NullJournalSink:
Inheritance graph
[legend]
Collaboration diagram for beast::NullJournalSink:
Collaboration graph
[legend]

Public Member Functions

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

Private Attributes

Severity thresh_
 
bool m_console
 

Detailed Description

Definition at line 28 of file beast_Journal.cpp.

Constructor & Destructor Documentation

◆ NullJournalSink()

beast::NullJournalSink::NullJournalSink ( )

Definition at line 31 of file beast_Journal.cpp.

◆ ~NullJournalSink()

beast::NullJournalSink::~NullJournalSink ( )
overridedefault

Member Function Documentation

◆ active()

bool beast::NullJournalSink::active ( severities::Severity  level) const
overridevirtual

Returns true if text at the passed severity produces output.

Reimplemented from beast::Journal::Sink.

Definition at line 37 of file beast_Journal.cpp.

◆ console() [1/2]

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

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

Reimplemented from beast::Journal::Sink.

Definition at line 43 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 49 of file beast_Journal.cpp.

◆ threshold() [1/2]

severities::Severity beast::NullJournalSink::threshold ( ) const
overridevirtual

Returns the minimum severity level this sink will report.

Reimplemented from beast::Journal::Sink.

Definition at line 54 of file beast_Journal.cpp.

◆ threshold() [2/2]

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

Set the minimum severity this sink will report.

Reimplemented from beast::Journal::Sink.

Definition at line 59 of file beast_Journal.cpp.

◆ write()

void beast::NullJournalSink::write ( severities::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 64 of file beast_Journal.cpp.

Member Data Documentation

◆ thresh_

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

Definition at line 116 of file Journal.h.

◆ m_console

bool beast::Journal::Sink::m_console
privateinherited

Definition at line 117 of file Journal.h.