ifw-fnd 2.0.1
 
Loading...
Searching...
No Matches
defs.cpp File Reference

Implementation of the ifw-fnd logging abstraction. More...

#include <ifw/fnd/defs/logger.hpp>
#include <atomic>
#include <chrono>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <memory>
#include <sstream>
#include <stdexcept>
#include <string>
#include <string_view>
#include <thread>
#include <fmt/format.h>
#include <sys/syscall.h>
#include <unistd.h>

Namespaces

namespace  ifw
 
namespace  ifw::fnd
 This source file contains definitions of the types and constants to handle data types.
 

Functions

void ifw::fnd::InstallLogger (std::unique_ptr< Logger > logger) noexcept
 Install the process-wide logger.
 
Loggerifw::fnd::Log ()
 Access the installed logger.
 
bool ifw::fnd::HasLogger () noexcept
 true iff a logger has been installed.
 
std::unique_ptr< Loggerifw::fnd::MakeStdoutLogger ()
 Factory: a logger that prints to stdout.
 
std::unique_ptr< Loggerifw::fnd::MakeNullLogger ()
 Factory: a logger that discards everything.
 
std::string_view ifw::fnd::LogLevelName (LogLevel level) noexcept
 Render a LogLevel as a short uppercase string.
 

Detailed Description

Implementation of the ifw-fnd logging abstraction.