TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
LogOperation Class Reference

#include <LogOperation.h>

Public Member Functions

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

Protected Attributes

Logger constlogger
 
std::unique_ptr< LogMessagemsg
 

Constructor & Destructor Documentation

LogOperation::LogOperation ( Logger const _logger,
std::unique_ptr< LogMessage > &&  _msg 
)
inline
31  : logger(_logger), msg(std::forward<std::unique_ptr<LogMessage>>(_msg))
32  { }
Logger const * logger
Definition: LogOperation.h:39
std::unique_ptr< LogMessage > msg
Definition: LogOperation.h:40
LogOperation::~LogOperation ( )
inline
34 { }

Member Function Documentation

int LogOperation::call ( )
22 {
23  logger->write(msg.get());
24  return 0;
25 }
Logger const * logger
Definition: LogOperation.h:39
void write(LogMessage *message) const
Definition: Logger.cpp:53
std::unique_ptr< LogMessage > msg
Definition: LogOperation.h:40

+ Here is the call graph for this function:

Member Data Documentation

Logger const* LogOperation::logger
protected
std::unique_ptr<LogMessage> LogOperation::msg
protected

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