logging

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomCallerEncoder added in v0.1.3

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

CustomCallerEncoder ...

func CustomLevelEncoder added in v0.1.3

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

CustomLevelEncoder ...

func CustomNameEncoder added in v0.1.3

func CustomNameEncoder(v string, enc zapcore.PrimitiveArrayEncoder)

TODO fix

Types

type Color added in v0.1.3

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.1.3

func (c Color) Add(s string) string

Add adds the coloring to the given string.

type LogDbSaver added in v0.0.19

type LogDbSaver struct {
	sync.Mutex
	// contains filtered or unexported fields
}

LogDbSaver ...

func NewLogDbSaver added in v0.0.19

func NewLogDbSaver(adaptors *adaptors.Adaptors,
	graceful *graceful_service.GracefulService) *LogDbSaver

NewLogDbSaver ...

func (*LogDbSaver) Save added in v0.0.19

func (l *LogDbSaver) Save(log m.Log)

Save ...

func (*LogDbSaver) Shutdown added in v0.0.19

func (l *LogDbSaver) Shutdown()

Shutdown ...

func (*LogDbSaver) Start added in v0.0.19

func (l *LogDbSaver) Start()

Start ...

type Logging added in v0.1.3

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

Logging ...

func NewLogger added in v0.1.3

func NewLogger(logDbSaver *LogDbSaver,
	appConfig *config.AppConfig) (logging *Logging)

NewLogger ...

Jump to

Keyboard shortcuts

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