AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
LogOperation Class Reference

#include "LogOperation.h"

Public Member Functions

 LogOperation (Logger const *_logger, std::unique_ptr< LogMessage > &&_msg)
 
 ~LogOperation ()
 
int call ()
 

Protected Attributes

Logger const * logger
 
std::unique_ptr< LogMessagemsg
 

Detailed Description

Constructor & Destructor Documentation

◆ LogOperation()

LogOperation::LogOperation ( Logger const *  _logger,
std::unique_ptr< LogMessage > &&  _msg 
)
22 : logger(_logger), msg(std::forward<std::unique_ptr<LogMessage>>(_msg))
23{
24}
std::unique_ptr< LogMessage > msg
Definition: LogOperation.h:38
Logger const * logger
Definition: LogOperation.h:37

◆ ~LogOperation()

LogOperation::~LogOperation ( )
27{
28}

Member Function Documentation

◆ call()

int LogOperation::call ( )
31{
32 logger->write(msg.get());
33 return 0;
34}
void write(LogMessage *message) const
Definition: Logger.cpp:49

References logger, msg, and Logger::write().

Member Data Documentation

◆ logger

Logger const* LogOperation::logger
protected

Referenced by call().

◆ msg

std::unique_ptr<LogMessage> LogOperation::msg
protected

Referenced by call().