Ark Server API 3.54
Serverside plugin support for Ark Survival Evolved.
Loading...
Searching...
No Matches
Log Class Reference

#include <Logger.h>

Public Member Functions

 Log (const Log &)=delete
 
 Log (Log &&)=delete
 
Logoperator= (const Log &)=delete
 
Logoperator= (Log &&)=delete
 
void Init (const std::string &plugin_name)
 

Static Public Member Functions

static LogGet ()
 
static std::shared_ptr< spdlog::logger > & GetLog ()
 

Private Member Functions

 Log ()=default
 
 ~Log ()=default
 

Private Attributes

std::shared_ptr< spdlog::loggerlogger_
 

Detailed Description

Definition at line 8 of file Logger.h.

Constructor & Destructor Documentation

◆ Log() [1/3]

Log::Log ( const Log )
delete

◆ Log() [2/3]

Log::Log ( Log &&  )
delete

◆ Log() [3/3]

Log::Log ( )
privatedefault

◆ ~Log()

Log::~Log ( )
privatedefault

Member Function Documentation

◆ Get()

static Log & Log::Get ( )
inlinestatic

Definition at line 16 of file Logger.h.

Referenced by GetLog(), and Init().

◆ GetLog()

◆ Init()

void Log::Init ( const std::string &  plugin_name)
inline

Definition at line 27 of file Logger.h.

References GetLogSinks(), spdlog::level::info, and logger_.

Referenced by Init().

◆ operator=() [1/2]

Log & Log::operator= ( const Log )
delete

◆ operator=() [2/2]

Log & Log::operator= ( Log &&  )
delete

Member Data Documentation

◆ logger_

std::shared_ptr<spdlog::logger> Log::logger_
private

Definition at line 41 of file Logger.h.

Referenced by GetLog(), and Init().


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