logman 0.1.0
Modern C++23 header-only logging manager wrapping spdlog with channels, listeners, and structured events
Loading...
Searching...
No Matches
formatters.hpp File Reference

Custom spdlog pattern flag formatters used by the default logman pattern. More...

#include <spdlog/details/fmt_helper.h>
#include <spdlog/pattern_formatter.h>
#include <algorithm>
#include <cctype>
#include <cstddef>
#include <memory>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for formatters.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  logman::UpperLevelFormatter
 L — uppercase level name, right-aligned to 8 characters. More...
 
class  logman::ChannelNameFormatter
 n — channel name abbreviated/padded to a fixed width (20 chars). More...
 

Variables

constexpr std::string_view logman::default_pattern
 Default Ghostframe-style pattern.
 

Detailed Description

Custom spdlog pattern flag formatters used by the default logman pattern.

Public so consumers can reuse them in their own patterns.

Variable Documentation

◆ default_pattern

constexpr std::string_view logman::default_pattern
inlineconstexpr
Initial value:
=
"%Y-%m-%dT%H:%M:%S.%e%z %^%L%$ %P --- [%6t] %n : %v"

Default Ghostframe-style pattern.

L is the bare custom-flag form (no width digit) so UpperLevelFormatter controls padding alone.