Tracking issue for pattern formatters
Lancern opened this issue · 1 comments
Lancern commented
This issue tracks the development progress of pattern formatters. The development takes place under branch pattern-formatter
.
- Basic pattern combinators
-
pattern!
- Atom patterns (reference: spdlog patterns)
- Literal string
- Payload (
{v}
,{payload}
) - Thread ID (
{t}
,{tid}
) - Process ID (
{p}
,{pid}
) - Logger name (
{n}
,{logger}
) - Log level (
{l}
,{level}
) - Short log level (
{L}
,{level-short}
) - Abbreviated weekday name (
{a}
,{weekday-name}
) - Full weekday name (
{A}
,{weekday-name-full}
) - Abbreviated month name (
{b}
,{month-name}
) - Full month name (
{B}
,{month-name-full}
) - Full date time (
{c}
,{datetime}
) - 2-digit year (
{C}
,{year-short}
) - 4-digit year (
{Y}
,{year}
) - Short date (
{D}
,{date-short}
) - Month 01-12 (
{m}
,{month}
) - Day of month 01-31 (
{d}
,{day}
) - Hours in 24 format 00-23 (
{H}
,{hour}
) - Hours in 12 format 01-12 (
{I}
,{hour-12}
) - Minutes 00-59 (
{M}
,{minute}
) - Seconds 00-59 (
{S}
,{second}
) - Millisecond part of the current second 000-999 (
{e}
,{millisecond}
) - Microsecond part of the current second 000000-999999 (
{f}
,{microsecond}
) - Nanosecond part of the current second 000000000-999999999 (
{F}
,{nanosecond}
) - AM / PM (
{p}
,{ampm}
) - 12 hour clock (
{r}
,{time-12}
) - 24 hour HH:MM time (
{R}
,{time-short}
) - ISO 8601 time format (HH:MM:SS) (
{T}
,{X}
,{time}
) - ISO 8601 offset from UTC in timezone ([+/-] HH:MM) (
{z}
,{tz-offset}
) - Seconds since epoch (
{E}
,{unix}
) - Full formatter (
{+}
,{full}
) - Color range (
{^...$}
) - Source file, line and column (
{@}
,{loc}
) - Basename of source file (
{s}
,{source-basename}
) - Full or relative path of the source file (
{g}
,{source}
) - Source line (
{#}
,{line}
) - Source column (
{%}
,{column}
)