logger

package
v0.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2018 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 config.LogConfig) error

Setup configures the nomad-toast 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 (f 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