This commit is contained in:
ge
2026-01-03 16:38:28 +03:00
commit 1fa21a9c74
12 changed files with 623 additions and 0 deletions

17
examples/unix_timestamp.v Normal file
View File

@@ -0,0 +1,17 @@
import os
import structlog
fn main() {
// Initialize logger with edited timestamp.
log := structlog.new(
timestamp_format: .unix
handler: structlog.JSONHandler{
writer: os.stdout()
}
)
defer {
log.close()
}
log.info().message('Hello, World!').send()
}