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

log

package
v2.60.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: Apache-2.0 Imports: 9 Imported by: 14

Documentation

Index

Constants

View Source
const DefaultLogTimeLayout = "2006-01-02.15-04-05"

Variables

This section is empty.

Functions

func CloseLogFile added in v2.17.0

func CloseLogFile(logFile *os.File) error

Closes the log file and resets to the default logger

func CreateCustomLogFile added in v2.19.1

func CreateCustomLogFile(fileNameWithExt string) (*os.File, error)

func CreateLogFile added in v2.17.0

func CreateLogFile() (*os.File, error)

func GetCliLogLevel

func GetCliLogLevel() log.LevelType

func SetDefaultLogger

func SetDefaultLogger()

Types

This section is empty.

Jump to

Keyboard shortcuts

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