mirror of
https://github.com/gechandesu/structlog.git
synced 2026-01-23 16:04:14 +03:00
LogConfig: deprecate timestamp_*, add Timestamp
This commit is contained in:
@@ -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