mLog

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

README

日志处理

log用于处理大量系统日志

nLog用于处理 少量日志

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

func Error

func Error(args ...interface{})

func Fatal

func Fatal(args ...interface{})

func Info

func Info(args ...interface{})

func Panic

func Panic(args ...interface{})

func SetEvn

func SetEvn(e string)

SetEvn 设置当前开发环境

func SetOutput

func SetOutput(output io.Writer)

func Warn

func Warn(args ...interface{})

Types

type NLog

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

NLog 用于处理少量日志

func NewLog

func NewLog(e string, logFilePrefix string) *NLog

NewLog 开发环境 文件名前缀

func (*NLog) Debug

func (l *NLog) Debug(s string)

func (*NLog) Error

func (l *NLog) Error(s string)

func (*NLog) Info

func (l *NLog) Info(s string)

func (*NLog) Trace

func (l *NLog) Trace(s string)

func (*NLog) Warn

func (l *NLog) Warn(s string)

Jump to

Keyboard shortcuts

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