Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Namespaces | Functions
Logger.cpp File Reference
#include "Logger.hpp"
#include <atomic>
#include <mutex>
#include <syslog.h>
#include <sys/uio.h>
Include dependency graph for Logger.cpp:

Go to the source code of this file.

Namespaces

namespace  toolbox
 
namespace  toolbox::sys
 

Functions

Loggertoolbox::sys::null_logger () noexcept
 Null logger. This logger does nothing and is effectively /dev/null.
 
Loggertoolbox::sys::std_logger () noexcept
 
Loggertoolbox::sys::sys_logger () noexcept
 System logger. This logger calls syslog().
 
const chartoolbox::sys::log_label (LogLevel level) noexcept
 Return log label for given log level.
 
LogLevel toolbox::sys::get_log_level () noexcept
 Return current log level.
 
LogLevel toolbox::sys::set_log_level (LogLevel level) noexcept
 Set log level globally for all threads.
 
Loggertoolbox::sys::get_logger () noexcept
 Return current logger.
 
Loggertoolbox::sys::set_logger (Logger &logger) noexcept
 Set logger globally for all threads.
 
void toolbox::sys::write_log (WallTime ts, LogLevel level, LogMsgPtr &&msg, std::size_t size) noexcept