* feat(Core/Logging): rework logging * correct level for sql.sql * del unused config options * Correct build * correct after merge * whitespace 20:29:37 1. 'Player.cpp'. Replace (1) 20:29:37 2. 'ObjectMgr.cpp'. Replace (3) * 1 * correct logging * correct affter merge * 1 * 2 * LOG_LEVEL_WARN * #include "AppenderDB.h" * 3 * 4 * 5 * 1. 'WorldSocket.cpp'. Replace (1) * 6 * 1
29 lines
597 B
C++
29 lines
597 B
C++
/*
|
|
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3
|
|
* Copyright (C) 2008-2021 TrinityCore <http://www.trinitycore.org/>
|
|
*/
|
|
|
|
#ifndef LOGOPERATION_H
|
|
#define LOGOPERATION_H
|
|
|
|
#include "Define.h"
|
|
#include <memory>
|
|
|
|
class Logger;
|
|
struct LogMessage;
|
|
|
|
class LogOperation
|
|
{
|
|
public:
|
|
LogOperation(Logger const* _logger, std::unique_ptr<LogMessage>&& _msg);
|
|
|
|
~LogOperation();
|
|
|
|
int call();
|
|
|
|
protected:
|
|
Logger const* logger;
|
|
std::unique_ptr<LogMessage> msg;
|
|
};
|
|
|
|
#endif
|