IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
Loading...
Searching...
No Matches
log.hxx File Reference

Go to the source code of this file.

Classes

struct  ice::detail::LogLocation

Namespaces

namespace  ice
 SPDX-License-Identifier: MIT.
namespace  ice::detail

Macros

#define ICE_LOG(severity, tag, format, ...)
#define ICE_LOG_IF(enable_condition, severity, tag, format, ...)
#define IPT_LOG(severity, tag, format, ...)
#define IPT_ZONE_LOG(severity, tag, format, ...)

Functions

void ice::detail::log (ice::LogSeverity severity, ice::LogTag tag, ice::String message, fmt::format_args args, ice::detail::LogLocation location) noexcept
void ice::detail::log (ice::LogSeverity severity, ice::LogTag tag, ice::I18NString message, fmt::format_args args, ice::detail::LogLocation location) noexcept
constexpr auto ice::detail::log_make_args () noexcept
template<typename... Args>
constexpr auto ice::detail::log_make_args (Args &&... args) noexcept

Macro Definition Documentation

◆ ICE_LOG

#define ICE_LOG ( severity,
tag,
format,
... )
Value:
do{ \
if constexpr(severity <= ice::lowest_compiled_log_severity) \
{ \
ice::detail::log( \
severity, \
format, \
ice::detail::LogLocation{ .file = __FILE__, .line = __LINE__ } \
); \
} \
} while(false)
constexpr auto get_tag(ice::LogTag tag) noexcept
Definition log_tag.hxx:52
constexpr auto log_make_args() noexcept
Definition log.hxx:36
static constexpr LogSeverity lowest_compiled_log_severity
Definition log_severity.hxx:25
Definition log.hxx:15

◆ ICE_LOG_IF

#define ICE_LOG_IF ( enable_condition,
severity,
tag,
format,
... )
Value:
do{ \
if constexpr(severity <= ice::lowest_compiled_log_severity) \
{ \
if (bool(enable_condition) == true) \
{ \
ice::detail::log( \
severity, \
format, \
ice::detail::LogLocation{ .file = __FILE__, .line = __LINE__ } \
); \
} \
} \
} while(false)

◆ IPT_LOG

#define IPT_LOG ( severity,
tag,
format,
... )
Value:
ICE_LOG(severity, tag, format, __VA_ARGS__)
#define ICE_LOG(severity, tag, format,...)
Definition log.hxx:53

◆ IPT_ZONE_LOG

#define IPT_ZONE_LOG ( severity,
tag,
format,
... )
Value:
ICE_LOG(severity, tag, format, __VA_ARGS__)