mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 14:37:44 +00:00
redefine critical log level to fatal in spdlog to be consistent with our logger api
This commit is contained in:
parent
db8330e1c6
commit
731198da5c
2 changed files with 4 additions and 12 deletions
|
@ -1,5 +1,7 @@
|
|||
#include "Logger.h"
|
||||
|
||||
#define SPDLOG_LEVEL_NAMES { "trace", "debug", "info", "warning", "error", "fatal", "off" }
|
||||
|
||||
#include <spdlog/spdlog.h>
|
||||
#include <spdlog/async.h>
|
||||
#include <spdlog/sinks/stdout_color_sinks.h>
|
||||
|
@ -10,16 +12,6 @@
|
|||
|
||||
namespace fs = std::experimental::filesystem;
|
||||
|
||||
Sapphire::Logger::Logger()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Sapphire::Logger::~Logger()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Sapphire::Logger::init( const std::string& logPath )
|
||||
{
|
||||
auto pos = logPath.find_last_of( fs::path::preferred_separator );
|
||||
|
|
|
@ -13,8 +13,8 @@ namespace Sapphire
|
|||
|
||||
private:
|
||||
std::string m_logFile;
|
||||
Logger();
|
||||
~Logger();
|
||||
Logger() = default;
|
||||
~Logger() = default;
|
||||
|
||||
public:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue