mirror of
https://github.com/gechandesu/structlog.git
synced 2026-11-15 21:13:54 +03:00
LogConfig: deprecate timestamp_*, add Timestamp
This commit is contained in:
1 parent
98738e773d
commit
8b13a596f7
3 files changed
+42
-8
No files matched your search
@@ -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()
|
||||
}
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user