cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
Loading...
Searching...
No Matches
msgpack_rpc::logging::ILogSink Class Referenceabstract

Interface of log sinks to write logs. More...

#include <msgpack_rpc/logging/i_log_sink.h>

Inheritance diagram for msgpack_rpc::logging::ILogSink:
Collaboration diagram for msgpack_rpc::logging::ILogSink:

Public Member Functions

 ILogSink (const ILogSink &)=delete
 ILogSink (ILogSink &&)=delete
virtual ~ILogSink () noexcept=default
 Destructor.
ILogSinkoperator= (const ILogSink &)=delete
ILogSinkoperator= (ILogSink &&)=delete
virtual void write (SourceLocationView location, LogLevel level, std::string_view body)=0
 Write a log.

Protected Member Functions

 ILogSink () noexcept=default
 Constructor.

Detailed Description

Interface of log sinks to write logs.

Definition at line 32 of file i_log_sink.h.

Member Function Documentation

◆ write()

virtual void msgpack_rpc::logging::ILogSink::write ( SourceLocationView location,
LogLevel level,
std::string_view body )
pure virtual

Write a log.

Parameters
[in]locationLocation in source codes.
[in]levelLog level.
[in]bodyBody of log.

Implemented in msgpack_rpc::logging::impl::spdlog_backend::SpdlogLogSink.


The documentation for this class was generated from the following file: