Continuum C++ API
Unified runtime for token + tensor execution
Loading...
Searching...
No Matches
logging.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <spdlog/logger.h>
4
5namespace continuum::log {
6
8
10spdlog::logger& core();
11spdlog::logger& runtime();
12spdlog::logger& backend();
13spdlog::logger& compiler();
14
15} // namespace continuum::log
16
17#define LOG_TRACE(subsystem, ...) continuum::log::subsystem().trace(__VA_ARGS__)
18#define LOG_DEBUG(subsystem, ...) continuum::log::subsystem().debug(__VA_ARGS__)
19#define LOG_INFO(subsystem, ...) continuum::log::subsystem().info(__VA_ARGS__)
20#define LOG_WARN(subsystem, ...) continuum::log::subsystem().warn(__VA_ARGS__)
21#define LOG_ERROR(subsystem, ...) continuum::log::subsystem().error(__VA_ARGS__)
22#define LOG_CRITICAL(subsystem, ...) continuum::log::subsystem().critical(__VA_ARGS__)
Definition logging.hpp:5
spdlog::logger & backend()
spdlog::logger & runtime()
spdlog::logger & compiler()
spdlog::logger & core()
LogLevel
Definition logging.hpp:7
void init(LogLevel level=LogLevel::kInfo)