36 lines
970 B
C++
36 lines
970 B
C++
// Copyright (C) 2015 Jérôme Leclercq
|
|
// This file is part of the "Nazara Engine - Core module"
|
|
// For conditions of distribution and use, see copyright notice in Config.hpp
|
|
|
|
#pragma once
|
|
|
|
#ifndef NAZARA_STDLOGGER_HPP
|
|
#define NAZARA_STDLOGGER_HPP
|
|
|
|
#include <Nazara/Prerequesites.hpp>
|
|
#include <Nazara/Core/AbstractLogger.hpp>
|
|
|
|
namespace Nz
|
|
{
|
|
class NAZARA_CORE_API StdLogger : public AbstractLogger
|
|
{
|
|
public:
|
|
StdLogger() = default;
|
|
StdLogger(const StdLogger&) = default;
|
|
StdLogger(StdLogger&&) = default;
|
|
~StdLogger();
|
|
|
|
void EnableStdReplication(bool enable) override;
|
|
|
|
bool IsStdReplicationEnabled() override;
|
|
|
|
void Write(const String& string) override;
|
|
void WriteError(ErrorType type, const String& error, unsigned int line = 0, const char* file = nullptr, const char* function = nullptr) override;
|
|
|
|
StdLogger& operator=(const StdLogger&) = default;
|
|
StdLogger& operator=(StdLogger&&) = default;
|
|
};
|
|
}
|
|
|
|
#endif // NAZARA_STDLOGGER_HPP
|