You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Custom pretty placeholders — pretty.placeholders: { token: (meta, pretty) => string | number } registers your own {{token}}s for pretty.template, styled through pretty.styles like the built-in ones, so a composite value such as HH:mm:ss.SSS is colored as one unit. Only tokens the template references are evaluated; a throwing callback renders empty and never drops the log; built-in names are reserved; sub-loggers inherit the parent's map. Meta template only — error templates and JSON output are unchanged. Thanks @clayzx.
pretty.styles key validation — a misspelled style key (styles: { logLevelNmae }) now warns in development with a did-you-mean, or throws TslogConfigError (UNKNOWN_PRETTY_STYLE) under strictConfig, since IPrettyLogStyles accepts any key to allow styling custom placeholders.