Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Typedefs | Functions
Log.hpp File Reference
#include <toolbox/sys/Logger.hpp>
#include <toolbox/util/Stream.hpp>
Include dependency graph for Log.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  toolbox::sys::Log
 

Namespaces

namespace  toolbox
 
namespace  toolbox::sys
 

Macros

#define TOOLBOX_LOG(LEVEL)   toolbox::is_log_level(LEVEL) && toolbox::Log{toolbox::WallClock::now(), LEVEL}()
 
#define TOOLBOX_CRIT   TOOLBOX_LOG(toolbox::LogLevel::Crit)
 
#define TOOLBOX_ERROR   TOOLBOX_LOG(toolbox::LogLevel::Error)
 
#define TOOLBOX_WARN   TOOLBOX_LOG(toolbox::LogLevel::Warn)
 
#define TOOLBOX_METRIC   TOOLBOX_LOG(toolbox::LogLevel::Metric)
 
#define TOOLBOX_NOTICE   TOOLBOX_LOG(toolbox::LogLevel::Notice)
 
#define TOOLBOX_INFO   TOOLBOX_LOG(toolbox::LogLevel::Info)
 
#define TOOLBOX_DEBUG   false && toolbox::Log{WallClock::now(), toolbox::LogLevel::Debug}()
 

Typedefs

using toolbox::sys::LogStream = util::OStream< MaxLogLine >
 Logger callback function.
 

Functions

LogStreamtoolbox::sys::log_stream () noexcept
 

Macro Definition Documentation

◆ TOOLBOX_LOG

#define TOOLBOX_LOG (   LEVEL)    toolbox::is_log_level(LEVEL) && toolbox::Log{toolbox::WallClock::now(), LEVEL}()

Definition at line 89 of file Log.hpp.

◆ TOOLBOX_CRIT

#define TOOLBOX_CRIT   TOOLBOX_LOG(toolbox::LogLevel::Crit)

Definition at line 92 of file Log.hpp.

◆ TOOLBOX_ERROR

#define TOOLBOX_ERROR   TOOLBOX_LOG(toolbox::LogLevel::Error)

Definition at line 93 of file Log.hpp.

◆ TOOLBOX_WARN

#define TOOLBOX_WARN   TOOLBOX_LOG(toolbox::LogLevel::Warn)

Definition at line 94 of file Log.hpp.

◆ TOOLBOX_METRIC

#define TOOLBOX_METRIC   TOOLBOX_LOG(toolbox::LogLevel::Metric)

Definition at line 95 of file Log.hpp.

◆ TOOLBOX_NOTICE

#define TOOLBOX_NOTICE   TOOLBOX_LOG(toolbox::LogLevel::Notice)

Definition at line 96 of file Log.hpp.

◆ TOOLBOX_INFO

#define TOOLBOX_INFO   TOOLBOX_LOG(toolbox::LogLevel::Info)

Definition at line 97 of file Log.hpp.

◆ TOOLBOX_DEBUG

#define TOOLBOX_DEBUG   false && toolbox::Log{WallClock::now(), toolbox::LogLevel::Debug}()

Definition at line 102 of file Log.hpp.