logging

command
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

This example demonstrates how to setup logging of requests/responses with the sdk using the standard Go "log" library.

By default, this example logs to stout (for INFO level logs) and stderr (for ERROR level logs):

```$ go run -v ./examples/logging/logging.go```

To log INFO and ERROR to a single log file use:

```$ go run -v ./examples/logging/logging.go -logfile=<path to logfile>```

Jump to

Keyboard shortcuts

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