mslog

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

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

Go to latest
Published: Jun 26, 2025 License: Apache-2.0 Imports: 8 Imported by: 3

README

mslog

对zap的封装

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(op *Options)

func Debug

func Debug(msg string, fields ...zap.Field)

Debug Debug

func Error

func Error(msg string, fields ...zap.Field)

Error Error

func Fatal

func Fatal(msg string, fields ...zap.Field)

func Foucs

func Foucs(msg string, fields ...zap.Field)

func Info

func Info(msg string, fields ...zap.Field)

Info Info

func Level

func Level() zapcore.Level

func Panic

func Panic(msg string, fields ...zap.Field)

func Sync

func Sync() error

func Trace

func Trace(msg string, fields ...zap.Field)

Trace Trace

func Warn

func Warn(msg string, fields ...zap.Field)

Warn Warn

Types

type Log

type Log interface {
	Info(msg string, fields ...zap.Field)
	MessageTrace(msg string, clientMsgNo string, operationName string, fields ...zap.Field)
	Trace(msg string, action string, fields ...zap.Field)
	Debug(msg string, fields ...zap.Field)
	Error(msg string, fields ...zap.Field)
	Warn(msg string, fields ...zap.Field)
	Fatal(msg string, fields ...zap.Field)
	Panic(msg string, fields ...zap.Field)
	Foucs(msg string, fields ...zap.Field)
}

Log Log

type MSLog

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

MSLog TLog

func NewMSLog

func NewMSLog(prefix string) *MSLog

NewMSLog NewMSLog

func (*MSLog) Debug

func (t *MSLog) Debug(msg string, fields ...zap.Field)

Debug Debug

func (*MSLog) Error

func (t *MSLog) Error(msg string, fields ...zap.Field)

Error Error

func (*MSLog) Fatal

func (t *MSLog) Fatal(msg string, fields ...zap.Field)

func (*MSLog) Foucs

func (t *MSLog) Foucs(msg string, fields ...zap.Field)

func (*MSLog) Info

func (t *MSLog) Info(msg string, fields ...zap.Field)

Info Info

func (*MSLog) MessageTrace

func (t *MSLog) MessageTrace(msg string, no string, action string, fields ...zap.Field)

func (*MSLog) Panic

func (t *MSLog) Panic(msg string, fields ...zap.Field)

func (*MSLog) Trace

func (t *MSLog) Trace(msg string, action string, fields ...zap.Field)

Trace Trace

func (*MSLog) Warn

func (t *MSLog) Warn(msg string, fields ...zap.Field)

Warn Warn

type Options

type Options struct {
	NodeId   uint64
	Level    zapcore.Level
	LogDir   string
	LineNum  bool
	TraceOn  bool
	NoStdout bool
}

func NewOptions

func NewOptions() *Options

Jump to

Keyboard shortcuts

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