Skip to content

Commit

Permalink
README: Performance node added
Browse files Browse the repository at this point in the history
  • Loading branch information
terehov committed Dec 23, 2020
1 parent f05fddb commit c8da472
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -538,6 +540,8 @@ Possible values are `utc` and <a href="https://www.iana.org/time-zones" target="
> **Hint:** If you want to use your local time zone, you can set:
> `dateTimeTimezone: Intl.DateTimeFormat().resolvedOptions().timeZone`
> **Caution!** Changing this pattern will affect performance (invocation of Intl.DateTimeFormat)
##### `prefix`
```default: [] ```

Expand Down

0 comments on commit c8da472

Please sign in to comment.