Logging functions.
More...
Logging functions.
◆ dbg()
| void flecs::log::dbg |
( |
const char * | fmt, |
|
|
| ... ) |
|
inline |
Debug trace (level 1).
- Parameters
-
Definition at line 63 of file log.hpp.
◆ enable_colors()
| void flecs::log::enable_colors |
( |
bool | enabled = true | ) |
|
|
inline |
Enable colors in logging.
- Parameters
-
| enabled | Whether to enable colors (default true). |
Definition at line 39 of file log.hpp.
◆ enable_timedelta()
| void flecs::log::enable_timedelta |
( |
bool | enabled = true | ) |
|
|
inline |
Enable time delta in logging.
- Parameters
-
| enabled | Whether to enable time delta (default true). |
Definition at line 55 of file log.hpp.
◆ enable_timestamp()
| void flecs::log::enable_timestamp |
( |
bool | enabled = true | ) |
|
|
inline |
Enable timestamps in logging.
- Parameters
-
| enabled | Whether to enable timestamps (default true). |
Definition at line 47 of file log.hpp.
◆ err()
| void flecs::log::err |
( |
const char * | fmt, |
|
|
| ... ) |
|
inline |
Error (level -3).
- Parameters
-
Definition at line 96 of file log.hpp.
◆ get_level()
| int flecs::log::get_level |
( |
| ) |
|
|
inline |
Get the log level.
- Returns
- The current log level.
Definition at line 31 of file log.hpp.
◆ pop()
Decrease log indentation.
Definition at line 121 of file log.hpp.
◆ push() [1/2]
| void flecs::log::push |
( |
| ) |
|
|
inline |
Increase log indentation.
Definition at line 116 of file log.hpp.
◆ push() [2/2]
| void flecs::log::push |
( |
const char * | fmt, |
|
|
| ... ) |
|
inline |
Trace and increase log indentation.
- Parameters
-
Definition at line 107 of file log.hpp.
◆ set_level()
| void flecs::log::set_level |
( |
int | level | ) |
|
|
inline |
Set the log level.
- Parameters
-
| level | The log level to set. |
Definition at line 23 of file log.hpp.
◆ trace()
| void flecs::log::trace |
( |
const char * | fmt, |
|
|
| ... ) |
|
inline |
Trace (level 0).
- Parameters
-
Definition at line 74 of file log.hpp.
◆ warn()
| void flecs::log::warn |
( |
const char * | fmt, |
|
|
| ... ) |
|
inline |
Warning (level -2).
- Parameters
-
Definition at line 85 of file log.hpp.