logger

package
v0.0.0-...-07eafe9 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package logger 错误日志的处理

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

func New

func New(l *logs.Logs) *Logger

func (*Logger) Count

func (l *Logger) Count() int

Count 接收到的日志数量

func (*Logger) Error

func (l *Logger) Error(msg any, filename string, line int)

Error 输出错误信息

如果 msg 包含了定位信息,则 filename 和 line 将被忽略

func (*Logger) Fatal

func (l *Logger) Fatal(msg any)

Fatal 输出致命错误

func (*Logger) Info

func (l *Logger) Info(msg any)

Info 输出提示信息

func (*Logger) Warning

func (l *Logger) Warning(msg any)

Warning 输出警告信息

Directories

Path Synopsis
Package loggertest 提供 logger 的测试用例
Package loggertest 提供 logger 的测试用例

Jump to

Keyboard shortcuts

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