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
+21-2Lines changed: 21 additions & 2 deletions
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,7 +692,7 @@ 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
695
+
####Custom function for unserializable values
696
696
697
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:
698
698
@@ -723,6 +723,25 @@ By default, Logger uses `str` to handle values non-serializable by JSON. You can
723
723
}
724
724
```
725
725
726
+
#### Bring your own handler
727
+
728
+
By default, Logger uses StreamHandler and logs to standard output. You can override this behaviour via `logger_handler` parameter:
0 commit comments