LogConfig: deprecate timestamp_*, add Timestamp

This commit is contained in:
ge committed 2026-01-11 06:04:13 +03:00
1 parent 98738e773d
commit 8b13a596f7
3 files changed
+42 -8

No files matched your search

+5 -2
View File
@@ -4,8 +4,11 @@ import structlog
fn main() {
// Initialize logger with edited timestamp.
log := structlog.new(
timestamp_format: .unix
handler: structlog.JSONHandler{
// timestamp_format: .unix
timestamp: structlog.Timestamp{
format: .unix
}
handler: structlog.JSONHandler{
writer: os.stdout()
}
)