irccd  3.0.3
irccd::daemon::logger::type_traits< T > Struct Template Reference

Traits for loggable objects. More...

#include <logger.hpp>

Detailed Description

template<typename T>
struct irccd::daemon::logger::type_traits< T >

Traits for loggable objects.

Specialize this structure and add the following static functions to be able to log object with convenience:

get_category

The get_category function should return a single word that describe the message entry category.

Synopsis:

static auto get_category(const T&) noexcept -> std::string_view;

get_component

The get_component function should return the identifier or any valid information about the given object that is useful for the user.

If no information could be provided, an empty string can be returned.

Synopsis:

static auto get_component(const T&) noexcept -> std::string_view;

The documentation for this struct was generated from the following file: