Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking issue for pattern formatters #10

Closed
40 tasks done
Lancern opened this issue Mar 20, 2022 · 1 comment · Fixed by #12
Closed
40 tasks done

Tracking issue for pattern formatters #10

Lancern opened this issue Mar 20, 2022 · 1 comment · Fixed by #12

Comments

@Lancern
Copy link
Collaborator

Lancern commented Mar 20, 2022

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})
@Lancern Lancern self-assigned this Mar 20, 2022
@Lancern Lancern linked a pull request Jun 27, 2022 that will close this issue
@Lancern
Copy link
Collaborator Author

Lancern commented Jun 30, 2022

The development status of the pattern formatters are now tracked in PR #12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant