Skip to content

Usage example for Go package github.com/powerman/structlog

License

Notifications You must be signed in to change notification settings

powerman/structlog-usage-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

structlog-usage-example

Usage example for Go package github.com/powerman/structlog.

Output

main[24224] inf structlog-usage-example: `started` version 0.1.0
main[24224] inf   main: `started` version 0.1.0
main[24224] inf   main: 127.0.0.1:1234        /some/thing: `incoming request` someuser
main[24224] inf   main: 123.123.123.123:12345 /other/thing: `incoming request` someparam=value
main[24224] ERR    pkg: `failed to do something` arg=42 err: EOF
main[24224] WRN   main: `temporary error` err: EOF
main[24224] WRN   main: `temporary error` err: failed to do something: EOF
{"_a":"main","_l":"inf","_m":"started","_p":24224,"_t":"Apr 18 14:39:57.374319","_u":"main","version":"0.1.0"}

About

Usage example for Go package github.com/powerman/structlog

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages