logs

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ZapLogger *zap.Logger

Functions

func CloseLog

func CloseLog()

func InitLogger

func InitLogger(_logTypes []string, _logPath string, _logEnv LogEnvType, _saveDays int)

init log

Types

type LogEnvType

type LogEnvType string
const (
	LogEnv_debug   LogEnvType = "debug"
	LogEnv_release LogEnvType = "release"
)

type LogType

type LogType string
const (
	LogType_stdout LogType = "stdout" // stdout
	LogType_file   LogType = "file"   // file
)

Jump to

Keyboard shortcuts

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