logging

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogFileName string = "server.log"
)

Variables

This section is empty.

Functions

func NewLumberjackSink

func NewLumberjackSink(*url.URL) (zap.Sink, error)

Types

type ILogger

type ILogger interface {
	Error(msg string, field ...zap.Field)
	Info(msg string, field ...zap.Field)
	Fatal(msg string, field ...zap.Field)
	With(field ...zap.Field) *zap.Logger
	//Sugar() *zap.SugaredLogger
	//Named(s string) *zap.Logger
	//WithOptions(opts ...zap.Option) *zap.Logger
	//Debug(msg string, fields ...zap.Field)
	//Named(s string) *zap.Logger
	//Check(lvl zapcore.Level, msg string) *zapcore.CheckedEntry
	//DPanic(msg string, fields ...zap.Field)
	//Panic(msg string, fields ...zap.Field)
	//Core() zapcore.Core
	Sync() error
}

func NewLogger

func NewLogger(debug bool, saveOnDisk bool) (ILogger, error)

Jump to

Keyboard shortcuts

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