logging

package
v0.0.0-...-269099d Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(v ...interface{})

func Error

func Error(v ...interface{})

func Errorln

func Errorln(v ...interface{})

func GetDebugLogPath

func GetDebugLogPath() string

func GetErrLogPath

func GetErrLogPath() string

func GetInfoLogPath

func GetInfoLogPath() string

func Info

func Info(v ...interface{})

func NewLogger

func NewLogger(level zapcore.Level, maxSize int, maxBackups int,
	maxAge int, compress bool, config Config)

func Panic

func Panic(v ...interface{})

func Setup

func Setup()

func TimeEncoder

func TimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)

func Warn

func Warn(v ...interface{})

Types

type Config

type Config interface {
	Level() zapcore.Level
	LogPath() string
	MaxLogSize() int
	ServiceName() string
	InfoOutput() string
	ErrorOutput() string
	DebugOutput() string
}

Jump to

Keyboard shortcuts

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