3#include <xrpl/beast/utility/instrumentation.h>
64 [[nodiscard]]
virtual bool
69 [[nodiscard]]
virtual bool
107#ifndef __INTELLISENSE__
134 template <
typename T>
153 template <
typename T>
163#ifndef __INTELLISENSE__
224 operator bool()
const
235 template <
typename T>
245#ifndef __INTELLISENSE__
285 return sink_->active(level);
328#ifndef __INTELLISENSE__
365template <
class CharT,
class Traits = std::
char_traits<CharT>>
409template <
class CharT,
class Traits = std::
char_traits<CharT>>
detail::LogStreamBuf< char, std::char_traits< char > > buf_
traits_type::off_type off_type
traits_type::int_type int_type
BasicLogstream(beast::Journal::Stream const &strm)
traits_type::pos_type pos_type
std::ostream & operator<<(std::ostream &manip(std::ostream &)) const
ScopedStream & operator=(ScopedStream const &)=delete
std::ostringstream & ostream() const
std::ostringstream ostream_
ScopedStream(ScopedStream const &other)
Abstraction for the underlying message destination.
virtual Severity threshold() const
Returns the minimum severity level this sink will report.
Sink(Sink const &sink)=default
Sink & operator=(Sink const &lhs)=delete
virtual bool active(Severity level) const
Returns true if text at the passed severity produces output.
virtual bool console() const
Returns true if a message is also written to the Output Window (MSVC).
virtual void write(Severity level, std::string const &text)=0
Write text to the sink at the specified severity.
virtual void writeAlways(Severity level, std::string const &text)=0
Bypass filter and write text to the sink at the specified severity.
Provide a light-weight way to check active() before string formatting.
Sink & sink() const
Returns the Sink that this Stream writes to.
bool active() const
Returns true if sink logs anything at this stream's level.
Stream & operator=(Stream const &other)=delete
Stream(Sink &sink, Severity level)
Create a stream that writes at the given level.
Stream(Stream const &other)
Construct or copy another Stream.
Stream()
Create a stream which produces no output.
Severity level() const
Returns the Severity level of messages this Stream reports.
ScopedStream operator<<(std::ostream &manip(std::ostream &)) const
Output stream support.
Journal(Sink &sink)
Create a journal that writes to the specified sink.
Sink & sink() const
Returns the Sink associated with this Journal.
bool active(Severity level) const
Returns true if any message would be logged at this severity level.
Stream stream(Severity level) const
Returns a stream for this sink, with the specified severity level.
static Sink & getNullSink()
Returns a Sink which does nothing.
Journal()=delete
Journal has no default constructor.
Stream trace() const
Severity stream access functions.
void write(wchar_t const *s)
beast::Journal::Stream strm_
LogStreamBuf(beast::Journal::Stream const &strm)
void write(char const *s)
void write(T const *)=delete
T is_copy_constructible_v
T is_default_constructible_v
T is_nothrow_destructible_v
T is_move_constructible_v
BasicLogstream< wchar_t > logwstream
Severity
Severity level / threshold of a Journal message.
BasicLogstream< char > logstream