log

package
v0.0.0-...-66224dc Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

日志包, 依赖了

github.com/shiena/ansicolor

github.com/sirupsen/logrus

如果使用 log.Info 等方法, 则日志会初始化默认值, 日志路径: default.log

Index

Constants

This section is empty.

Variables

View Source
var (

	// 公开的 控制台日志对象
	Stdout *logrus.Logger
	// 公开的 文件日志对象
	File *logrus.Logger
)

Functions

func Debug

func Debug(args ...interface{})

debug level

func Error

func Error(args ...interface{})

error level

func Fatal

func Fatal(args ...interface{})

Fatal level

func Fatalln

func Fatalln(args ...interface{})

func Info

func Info(args ...interface{})

info level

func NewGormLog

func NewGormLog(level logger.LogLevel) logger.Interface

创建一个 gorm logger 对象

func Print

func Print(args ...interface{})

func Warn

func Warn(args ...interface{})

warn level

func Warning

func Warning(args ...interface{})

Warning level

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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