loglevel

package
v0.15.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLogFormat added in v0.15.0

func SetLogFormat()

SetLogFormat sets the default format for the logger. TODO: "set" on the name doesn't make sense, as it isn't receiving nothing to set. In my view, "use" could be a better naming, as it will "use" the environmental variable.

func SetLogLevel

func SetLogLevel()

TODO: "set" on the name doesn't make sense, as it isn't receiving nothing to set. In my view, "use" could be a better naming, as it will "use" the environmental variable.

func UseEnvs added in v0.15.0

func UseEnvs()

UseEnvs set the logger level to the specified in SHELLHUB_LOG_LEVEL and the log format for SHELLHUB_LOG_FORMAT.

Types

type LogFormat added in v0.15.0

type LogFormat string

LogFormat represents how logger should print logs.

const (
	// LogFormatJSON format for JSON log.
	LogFormatJSON LogFormat = "json"
	// LogFormatText format for text log.
	LogFormatText LogFormat = "text"
)

Jump to

Keyboard shortcuts

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