HAL
log.h File Reference
#include "hal_core/defines.h"
#include "hal_core/utilities/callback_hook.h"
#include "hal_core/utilities/program_arguments.h"
#include "hal_core/utilities/program_options.h"
#include "hal_core/utilities/utils.h"
#include <functional>
#include <map>
#include <memory>
#include <mutex>
#include <set>
#include <string>
#include <tuple>
#include <spdlog/sinks/base_sink.h>
#include <spdlog/spdlog.h>
Include dependency graph for log.h:

Go to the source code of this file.

Classes

class  hal::LogManager
 
struct  hal::LogManager::log_sink
 
class  hal::log_gui_sink
 

Namespaces

 hal
 

Macros

#define FMT_HEADER_ONLY
 
#define STRINGISTRINGIFY(x)   #x
 
#define STRINGIFY(x)   STRINGISTRINGIFY(x)
 
#define LOG_CHANNEL(channel)   LogManager::get_instance()->get_channel(channel)
 
#define die(channel, ...)
 
#define log_info(channel, ...)   LOG_CHANNEL(channel)->info(__VA_ARGS__)
 
#define log_trace(channel, ...)   LOG_CHANNEL(channel)->trace("[" __FILE__ ":" STRINGIFY(__LINE__) "] " __VA_ARGS__)
 
#define log_debug(channel, ...)   LOG_CHANNEL(channel)->debug("[" __FILE__ ":" STRINGIFY(__LINE__) "] " __VA_ARGS__)
 
#define log_warning(channel, ...)   LOG_CHANNEL(channel)->warn("[" __FILE__ ":" STRINGIFY(__LINE__) "] " __VA_ARGS__)
 
#define log_error(channel, ...)   LOG_CHANNEL(channel)->error("[" __FILE__ ":" STRINGIFY(__LINE__) "] " __VA_ARGS__)
 
#define log_critical(channel, ...)   LOG_CHANNEL(channel)->critical("[" __FILE__ ":" STRINGIFY(__LINE__) "] " __VA_ARGS__)
 

Macro Definition Documentation

◆ FMT_HEADER_ONLY

#define FMT_HEADER_ONLY

Definition at line 42 of file log.h.

◆ LOG_CHANNEL

#define LOG_CHANNEL (   channel)    LogManager::get_instance()->get_channel(channel)

Definition at line 56 of file log.h.

◆ STRINGIFY

#define STRINGIFY (   x)    STRINGISTRINGIFY(x)

Definition at line 53 of file log.h.

◆ STRINGISTRINGIFY

#define STRINGISTRINGIFY (   x)    #x

Definition at line 52 of file log.h.