32 lines
846 B
C++
32 lines
846 B
C++
// Copyright (C) 2020 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_ABSTRACTLOGGER_HPP
|
|
#define NAZARA_ABSTRACTLOGGER_HPP
|
|
|
|
#include <Nazara/Prerequisites.hpp>
|
|
#include <Nazara/Core/Enums.hpp>
|
|
#include <string>
|
|
|
|
namespace Nz
|
|
{
|
|
class NAZARA_CORE_API AbstractLogger
|
|
{
|
|
public:
|
|
AbstractLogger() = default;
|
|
virtual ~AbstractLogger();
|
|
|
|
virtual void EnableStdReplication(bool enable) = 0;
|
|
|
|
virtual bool IsStdReplicationEnabled() const = 0;
|
|
|
|
virtual void Write(const std::string_view& string) = 0;
|
|
virtual void WriteError(ErrorType type, const std::string_view& error, unsigned int line = 0, const char* file = nullptr, const char* function = nullptr);
|
|
};
|
|
}
|
|
|
|
#endif // NAZARA_ABSTRACTLOGGER_HPP
|