Nakama C++ Client SDK 2.5.1
Client for Nakama Server
NLogSinkInterface Class Referenceabstract

#include <NLogSinkInterface.h>

Inheritance diagram for NLogSinkInterface:
NConsoleLogSink

Public Member Functions

 NLogSinkInterface ()
 
virtual ~NLogSinkInterface ()
 
virtual void log (NLogLevel level, const std::string &message, const char *func=nullptr)=0
 
virtual void flush ()=0
 
void setLevel (NLogLevel level)
 
NLogLevel getLevel () const
 

Protected Attributes

NLogLevel _level = NLogLevel::Info
 

Constructor & Destructor Documentation

◆ NLogSinkInterface()

NLogSinkInterface::NLogSinkInterface ( )
inline

◆ ~NLogSinkInterface()

virtual NLogSinkInterface::~NLogSinkInterface ( )
inlinevirtual

Member Function Documentation

◆ flush()

virtual void NLogSinkInterface::flush ( )
pure virtual

Flush cached data.

Implemented in NConsoleLogSink.

◆ getLevel()

NLogLevel NLogSinkInterface::getLevel ( ) const
inline

Get the logging level boundary

Returns
NLogLevel

◆ log()

virtual void NLogSinkInterface::log ( NLogLevel  level,
const std::string &  message,
const char *  func = nullptr 
)
pure virtual

Output log message

Parameters
levelthe level of log message
messagethe log message string
functhe function name from which log message comes. Usually has class name e.g. NDefaultClient::onResponse

Implemented in NConsoleLogSink.

◆ setLevel()

void NLogSinkInterface::setLevel ( NLogLevel  level)
inline

Set the logging level boundary

Parameters
levelthe logging level boundary

Member Data Documentation

◆ _level

NLogLevel NLogSinkInterface::_level = NLogLevel::Info
protected

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