From c8da472ce49199d0d5fe58ef98e5a08f2a9a16bd Mon Sep 17 00:00:00 2001 From: Eugene Terehov Date: Thu, 24 Dec 2020 00:25:39 +0100 Subject: [PATCH] README: Performance node added --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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