logging

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

README

Logging

We provide a preconfigured logging service (golog).

logger := logging.New(env.New())

The log level can be configured using the LOG_LEVEL env variable. Default level is info.

Possible values:

  • debug
  • info (this is the default / fallback level)
  • warn
  • error
  • fatal

The log format can be configured using the LOG_FORMAT env variable. Default is console.

Possible values:

  • console (this is the default / fallback format)
  • json

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LOG_LEVEL  = "LOG_LEVEL"
	LOG_FORMAT = "LOG_FORMAT"
)

Functions

func New

func New(_ *env.Env) golog.Logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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