diff --git a/README.md b/README.md index 56a2c783..f045a9e1 100644 --- a/README.md +++ b/README.md @@ -525,8 +525,10 @@ Set a custom pretty log delimiter. ##### `dateTimePattern` ```default: "year-month-day hour:minute:second.millisecond"``` +> **Caution!** Changing this pattern will affect performance (invocation of Intl.DateTimeFormat) + Change the way `tslog` prints out the date. -Based on Intl.DateTimeFormat.formatToParts with additional milliseconds, you can use type as a placeholder. +Based on Intl.DateTimeFormat formatToParts with additional milliseconds, you can use type as a placeholder. Available placeholders are: `day`, `dayPeriod`, `era`, `hour`, `literal`, `minute`, `month`, `second`, `millisecond`, `timeZoneName`, `weekday` and `year`. ##### `dateTimeTimezone` @@ -538,6 +540,8 @@ Possible values are `utc` and