logging

package module
v0.0.0-...-2eeca3e Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// LogFileFlags are suitable for appending to a log file
	LogFileFlags = os.O_CREATE | os.O_APPEND | os.O_RDWR

	// LogFileMode is suitable for root-only log access
	LogFileMode = 0600
)

Variables

This section is empty.

Functions

func CreateWriter

func CreateWriter(w interface{}) (io.Writer, error)

CreateWriter is a convenience function to ensure that the given input results in an io.Writer

func SetWriter

func SetWriter(w interface{}) error

SetWriter sets up the writer for non-interactive logging libraries

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