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
* dateTimePattern: DateTime pattern based on Intl.DateTimeFormat.formatToParts with additional milliseconds, default: `year-month-day hour:minute:second.millisecond`
7
+
* dateTimeTimezone: DateTime timezone, e.g. `utc`, or `Europe/Berlin`, `Europe/Moscow`. You can use `Intl.DateTimeFormat().resolvedOptions().timeZone` for local timezone, default: "utc"
8
+
* printLogMessageInNewLine: Print log message in a new line below meta information, default: `false`
9
+
* displayDateTime: Display date time at the beginning of a log message, default: `true`
Each logger has an optional name, that is hidden by default.
183
+
Each logger has an optional name, that is hidden by default. You can change this behavior by setting `displayLoggerName` to `true`.
192
184
This setting is particularly interesting when working in a `monorepo`,
193
185
giving you the possibility to provide each module/package with its own logger and being able to distinguish logs coming from different parts of your application.
194
186
@@ -295,6 +287,64 @@ This setting allows you to overwrite the default colors of `tslog` used for the
295
287
296
288
More Details: <ahref="https://nodejs.org/api/util.html#util_customizing_util_inspect_colors"target="_blank">Customizing util.inspect colors</a>
Based on Intl.DateTimeFormat.formatToParts with additional milliseconds, you can use type as a placeholder.
295
+
Available placeholders are: `day`, `dayPeriod`, `era`, `hour`, `literal`, `minute`, `month`, `second`, `millisecond`, `timeZoneName`, `weekday` and `year`.
296
+
297
+
##### `dateTimeTimezone`
298
+
```default: "utc" ```
299
+
300
+
Define in which timezone the date should be printed in.
301
+
Possible values are `utc` and <ahref="https://www.iana.org/time-zones"target="_blank">IANA (Internet Assigned Numbers Authority)</a> based timezones, e.g. `Europe/Berlin`, `Europe/Moscow` and so on.
302
+
303
+
> *Hint:* If you want to use your local time zone, you can set:
0 commit comments