logger

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(config logCfg.Config) error

Setup configures the chemtrail logging based on user configuration.

Types

type Format

type Format uint

Format represents our log format type.

const (
	FormatAuto Format = iota
	FormatZerolog
	FormatHuman
)

Our log format options.

func (Format) String

func (f Format) String() string

String takes a Format type and converts to a string.

type Level

type Level int

Level is our log level.

const (
	LevelBegin Level = iota - 2
	LevelDebug
	LevelInfo // Default, zero-initialized value
	LevelWarn
	LevelError
	LevelFatal
	LevelEnd
)

These represent the support log levels for configuration.

func (Level) String

func (l Level) String() string

String takes a Level type and converts to a string.

Jump to

Keyboard shortcuts

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