LogConfig: deprecate timestamp_*, add Timestamp

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

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()
}
)