rippled
|
Provide a light-weight way to check active() before string formatting. More...
Public Member Functions | |
Stream () | |
Create a stream which produces no output. More... | |
Stream (Sink &sink, Severity level) | |
Create a stream that writes at the given level. More... | |
Stream (Stream const &other) | |
Construct or copy another Stream. More... | |
Stream & | operator= (Stream const &other)=delete |
Sink & | sink () const |
Returns the Sink that this Stream writes to. More... | |
Severity | level () const |
Returns the Severity level of messages this Stream reports. More... | |
template<typename T > | |
Journal::ScopedStream | operator<< (T const &t) const |
bool | active () const |
Returns true if sink logs anything at this stream's level. More... | |
operator bool () const | |
ScopedStream | operator<< (std::ostream &manip(std::ostream &)) const |
Output stream support. More... | |
template<typename T > | |
ScopedStream | operator<< (T const &t) const |
Private Attributes | |
Sink & | m_sink |
Severity | m_level |
Provide a light-weight way to check active() before string formatting.
|
explicit |
beast::Journal::Stream::Stream | ( | Stream const & | other | ) |
Sink& beast::Journal::Stream::sink | ( | ) | const |
Severity beast::Journal::Stream::level | ( | ) | const |
bool beast::Journal::Stream::active | ( | ) | const |
Journal::ScopedStream beast::Journal::Stream::operator<< | ( | std::ostream & | manipstd::ostream & | ) | const |
Output stream support.
Definition at line 155 of file beast_Journal.cpp.
ScopedStream beast::Journal::Stream::operator<< | ( | T const & | t | ) | const |
Journal::ScopedStream beast::Journal::Stream::operator<< | ( | T const & | t | ) | const |