Nakama C++ Client SDK 2.5.1
Client for Nakama Server
|
Writes logs to console output. More...
#include <NConsoleLogSink.h>
Public Member Functions | |
~NConsoleLogSink () | |
void | log (NLogLevel level, const std::string &message, const char *func) override |
void | flush () override |
Public Member Functions inherited from NLogSinkInterface | |
NLogSinkInterface () | |
virtual | ~NLogSinkInterface () |
void | setLevel (NLogLevel level) |
NLogLevel | getLevel () const |
Additional Inherited Members | |
Protected Attributes inherited from NLogSinkInterface | |
NLogLevel | _level = NLogLevel::Info |
Writes logs to console output.
|
inline |
|
overridevirtual |
Flush cached data.
Implements NLogSinkInterface.
|
overridevirtual |
Output log message
level | the level of log message |
message | the log message string |
func | the function name from which log message comes. Usually has class name e.g. NDefaultClient::onResponse |
Implements NLogSinkInterface.