custlog

package
v0.0.0-...-ac78898 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Trace, Info, Warning, Error *log.Logger
	Logfile                     string
)

logging variables

Functions

func LogInit

func LogInit(w Writers)

Types

type Writers

type Writers struct {
	Tracehandle, Infohandle, Warninghandle, Errorhandle io.Writer
	Append                                              bool
	Logfile                                             string //name of logfile
}

declare a new writer struct whenever you want to change default writers

func DefaultWriters

func DefaultWriters(file_name string, append bool) Writers

default writer values

Jump to

Keyboard shortcuts

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