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
Copy file name to clipboardExpand all lines: docs/core/logger.md
+32-1Lines changed: 32 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -676,7 +676,7 @@ You can change the order of [standard Logger keys](#standard-structured-keys) or
676
676
}
677
677
```
678
678
679
-
####Setting timestamp to UTC
679
+
### Setting timestamp to UTC
680
680
681
681
By default, this Logger and standard logging library emits records using local time timestamp. You can override this behaviour via `utc` parameter:
682
682
@@ -692,6 +692,37 @@ By default, this Logger and standard logging library emits records using local t
692
692
logger_in_utc.info("GMT time zone")
693
693
```
694
694
695
+
### Custom function for unserializable values
696
+
697
+
By default, Logger uses `str` to handle values non-serializable by JSON. You can override this behaviour via `json_default` parameter by passing a Callable:
0 commit comments