multilog

package module
v0.0.0-...-ad50ad8 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

README

multilog

golang log framework

Documentation

Index

Constants

View Source
const (
	DebugLevel = iota
	InfoLevel
	ErrorLevel
	CriticalLevel
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseConfig

type DatabaseConfig struct {
	DB        *sql.DB
	TableName string
}

type Logger

type Logger struct {
	Conn        net.Conn
	DBConf      *DatabaseConfig
	RedisCli    *redis.Client
	Outer       *os.File
	MultiWriter []io.Writer
	Level       int
	StrictMode  bool
}

func G

func G() *Logger

func (*Logger) Critical

func (l *Logger) Critical(v interface{})

func (*Logger) Debug

func (l *Logger) Debug(v interface{})

func (*Logger) Error

func (l *Logger) Error(v interface{})

func (*Logger) Info

func (l *Logger) Info(v interface{})

Jump to

Keyboard shortcuts

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