Help us shape the future of Go! Take the 2026 Go Developer Survey

logs

package
v2.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package logs 是 pkg/logs 的向后兼容别名壳。

v2.0 起日志包已迁至 github.com/maczh/mgin/v2/pkg/logs,本包仅做 re-export, 以便存量项目 `import "github.com/maczh/mgin/v2/logs"` 仍可编译。该别名壳计划在 下一个 release 删除,新项目请直接使用 pkg/logs。

Index

Constants

This section is empty.

Variables

View Source
var (
	NoColor = pkglogs.NoColor
	Output  = pkglogs.Output
)

包级变量。

View Source
var (
	Print          = pkglogs.Print
	FilePrinter    = pkglogs.FilePrinter
	GetLogger      = pkglogs.GetLogger
	OutPrint       = pkglogs.OutPrint
	Debug          = pkglogs.Debug
	Info           = pkglogs.Info
	Warn           = pkglogs.Warn
	Error          = pkglogs.Error
	ConsolePrinter = pkglogs.ConsolePrinter
	New            = pkglogs.New
	Set            = pkglogs.Set
	Unset          = pkglogs.Unset
	Black          = pkglogs.Black
	Red            = pkglogs.Red
	Green          = pkglogs.Green
	Yellow         = pkglogs.Yellow
	Blue           = pkglogs.Blue
	Magenta        = pkglogs.Magenta
	Cyan           = pkglogs.Cyan
	White          = pkglogs.White
	BlackString    = pkglogs.BlackString
	RedString      = pkglogs.RedString
	GreenString    = pkglogs.GreenString
	YellowString   = pkglogs.YellowString
	BlueString     = pkglogs.BlueString
	MagentaString  = pkglogs.MagentaString
	CyanString     = pkglogs.CyanString
	WhiteString    = pkglogs.WhiteString
)

包级函数。

Functions

This section is empty.

Types

type Attribute

type Attribute = pkglogs.Attribute

类型别名:方法随类型自动带入(如 *Color.Set()、GoLogger.Info() 等)。

type Color

type Color = pkglogs.Color

类型别名:方法随类型自动带入(如 *Color.Set()、GoLogger.Info() 等)。

type GoLogger

type GoLogger = pkglogs.GoLogger

类型别名:方法随类型自动带入(如 *Color.Set()、GoLogger.Info() 等)。

type LogInstance

type LogInstance = pkglogs.LogInstance

类型别名:方法随类型自动带入(如 *Color.Set()、GoLogger.Info() 等)。

type Logger

type Logger = pkglogs.Logger

类型别名:方法随类型自动带入(如 *Color.Set()、GoLogger.Info() 等)。

Jump to

Keyboard shortcuts

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