49efcde301
CI / Build NRO (push) Successful in 29s
CI / Format check (push) Successful in 28s
CI / Layering check (push) Successful in 2s
CI / Build NRO (pull_request) Successful in 29s
CI / Format check (pull_request) Successful in 27s
CI / Layering check (pull_request) Successful in 1s
14 lines
546 B
C++
14 lines
546 B
C++
#pragma once
|
|
|
|
// New API — use these going forward.
|
|
namespace nxst::log {
|
|
|
|
enum class Level { Debug, Info, Warn, Error };
|
|
|
|
void write(Level level, const char* fmt, ...) __attribute__((format(printf, 2, 3)));
|
|
void debug(const char* fmt, ...) __attribute__((format(printf, 1, 2)));
|
|
void info(const char* fmt, ...) __attribute__((format(printf, 1, 2)));
|
|
void warn(const char* fmt, ...) __attribute__((format(printf, 1, 2)));
|
|
void error(const char* fmt, ...) __attribute__((format(printf, 1, 2)));
|
|
|
|
} // namespace nxst::log
|