#pragma once
#include <string>
namespace simulation_framework
{
namespace core
{
namespace logging
{
enum class LogLevel : int
{
kDebug = 0,
kInfo,
kWarning,
kError,
};
class ILogger
{
public:
virtual ~ILogger() = default;
[[nodiscard]] virtual LogLevel GetCurrentLogLevel() const = 0;
virtual void SetCurrentLogLevel(LogLevel log_level) = 0;
virtual void Log(LogLevel level, std::string_view message) = 0;
};
} // namespace logging
} // namespace core
} // namespace simulation_framework
i_logger.h
Was this page helpful?