log

package
v0.0.0-...-60de6dc Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close() error

Close closes the log file.

func Debug

func Debug(format string, args ...interface{})

Debug sends a debug message to the log file.

func DebugWriter

func DebugWriter() io.Writer

DebugWriter returns the writer that writes debug messages to the log file.

func Error

func Error(format string, args ...interface{})

Error sends an error message to the log file and to the standard error stream of the process.

func ErrorWriter

func ErrorWriter() io.Writer

ErrorWriter returns the writer that writes error messages to the log file and to the standard error stream of the process. file.

func Info

func Info(format string, args ...interface{})

Info sends an informative message to the log file and to the standard ouptut of the process.

func InfoWriter

func InfoWriter() io.Writer

InfoWriter returns the writer that writes informative messages to the log file and to the standard output of the process.

func Open

func Open(name string) error

Open creates a log file with the given name and the .log extension, and configures the log to write to it.

func Path

func Path() string

Path the returns the path of the log file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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