logs

package
v1.0.45 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogDriver

type LogDriver interface {
	Error(msg string, ctx ...interface{})
	Warn(msg string, ctx ...interface{})
	Info(msg string, ctx ...interface{})
	Trace(msg string, ctx ...interface{})
	Debug(msg string, ctx ...interface{})
}

底层日志库约束接口

type Logger

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

func NewLogger

func NewLogger(logDriver LogDriver) *Logger

func (*Logger) Debug

func (t *Logger) Debug(msg string, ctx ...interface{})

func (*Logger) Error

func (t *Logger) Error(msg string, ctx ...interface{})

func (*Logger) Info

func (t *Logger) Info(msg string, ctx ...interface{})

func (*Logger) Trace

func (t *Logger) Trace(msg string, ctx ...interface{})

func (*Logger) Warn

func (t *Logger) Warn(msg string, ctx ...interface{})

Jump to

Keyboard shortcuts

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