Skip to content

File LogLevel.h

File List > dalia > LogLevel.h

Go to the documentation of this file

#pragma once


#include <functional>

namespace dalia {

    enum class LogLevel : int {
        Debug       = 0, // Logs most core actions. Suitable for engine developers.
        Info        = 1, // Logs core engine events and state changes.
        Warning     = 2, // Logs non-fatal issues that need attention.
        Error       = 3, // Logs failures that prevent an operation from succeeding.
        Critical    = 4, // Logs unrecoverable errors and fatal states.
        None        = 5, // Disables all logging.
    };

    using LogCallback = std::function<void(LogLevel level, const char* context, const char* message)>;
}