logging

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomCallerEncoder added in v0.0.23

func CustomCallerEncoder(caller zapcore.EntryCaller, enc zapcore.PrimitiveArrayEncoder)

CustomCallerEncoder ...

func CustomLevelEncoder added in v0.0.23

func CustomLevelEncoder(l zapcore.Level, enc zapcore.PrimitiveArrayEncoder)

CustomLevelEncoder ...

func CustomNameEncoder added in v0.0.23

func CustomNameEncoder(v string, enc zapcore.PrimitiveArrayEncoder)

TODO fix

Types

type Color added in v0.0.23

type Color uint8

Color represents a text color.

const (
	// Black ...
	Black Color = iota + 30
	// Red ...
	Red
	// Green ...
	Green
	// Yellow ...
	Yellow
	// Blue ...
	Blue
	// Magenta ...
	Magenta
	// Cyan ...
	Cyan
	// White ...
	White
)

Foreground colors.

func (Color) Add added in v0.0.23

func (c Color) Add(s string) string

Add adds the coloring to the given string.

type Logging added in v0.0.23

type Logging struct {
	// contains filtered or unexported fields
}

Logging ...

func NewLogger added in v0.0.23

func NewLogger(appConfig *m.AppConfig) (logging *Logging)

NewLogger ...

Jump to

Keyboard shortcuts

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