structlog-usage-example

command module
v0.0.0-...-959e5f3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2021 License: MIT Imports: 3 Imported by: 0

README

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"}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL