core/tel/level.hpp file

Telemetry levels.

Namespaces

namespace cubos
Cubos libraries namespace.
namespace cubos::core
Core namespace.
namespace cubos::core::tel
Telemetry module.

Enums

enum class Level { Trace = CUBOS_TEL_LEVEL_TRACE, Debug = CUBOS_TEL_LEVEL_DEBUG, Info = CUBOS_TEL_LEVEL_INFO, Warn = CUBOS_TEL_LEVEL_WARN, Error = CUBOS_TEL_LEVEL_ERROR, Critical = CUBOS_TEL_LEVEL_CRITICAL, Off = CUBOS_TEL_LEVEL_OFF }
Represents a telemetry level.

Functions

void level(Level level)
Set telemetry level.
auto level() -> Level -> auto
Get telemetry level.

Defines

#define CUBOS_TEL_LEVEL_TRACE
Trace telemetry level, lowest telemetry level. Very verbose.
#define CUBOS_TEL_LEVEL_DEBUG
Debug telemetry level. Contains logs and tracing useful for debugging, but which are not necessary in release builds.
#define CUBOS_TEL_LEVEL_INFO
Information telemetry level. Contains important events that are not errors.
#define CUBOS_TEL_LEVEL_WARN
Warn telemetry level. Contains events that are not errors, but which are unexpected and may be problematic.
#define CUBOS_TEL_LEVEL_ERROR
Error telemetry level. Contains errors which are recoverable from.
#define CUBOS_TEL_LEVEL_CRITICAL
Critical telemetry level, highest log level. Contains errors which are unrecoverable from.
#define CUBOS_TEL_LEVEL_OFF
Off telemetry level, disables all logging/tracing.
#define CUBOS_TEL_LEVEL
Telemetry level to compile in.