Skip to content

Logging

Danilo Todorović edited this page Mar 31, 2024 · 2 revisions

Introduction to logging in Blazr

For logging we use the Log class which is located in the Blazr namespace. There are two loggers:

  • Core logger (BLZR_CORE)
  • Client logger (BLZR_CLIENT)

To use these loggers, you can use predefined macros:

- Core Logger:

BLZR_CORE_INFO(message)
BLZR_CORE_WARN(message)
BLZR_CORE_ERROR(message)
BLZR_CORE_FATAL(message)
BLZR_CORE_CRITICAL(message)

- Client Logger:

BLZR_CLIENT_INFO(message)
BLZR_CLIENT_WARN(message)
BLZR_CLIENT_ERROR(message)
BLZR_CLIENT_FATAL(message)
BLZR_CLIENT_CRITICAL(message)

Example:

BLZR_CORE_WARN("This is a warning!");

Clone this wiki locally