log

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogDebug = true

LogDebug is the check whether debug messages should be logged.

View Source
var LogDirectory string

LogDirectory is the directory that the log file will be written to.

View Source
var LogError = true

LogError is the check whether error messages should be logged.

View Source
var LogFatal = true

LogFatal is the check whether fatal messages should be logged.

View Source
var LogInfo = true

LogInfo is the check whether info messages should be logged.

View Source
var LogToConsole = true

LogToConsole is the check whether log messages should be written to console.

View Source
var LogToFile = true

LogToFile is the check whether log messages should be written to file.

View Source
var LogWarning = true

LogWarning is the check whether warning messages should be logged.

Functions

func Debug

func Debug(pkg string, msg string) error

Debug for logging any messages useful for debugging applications.

func Error

func Error(pkg string, msg string) error

Error for logging any error messages where the application is able to recover from.

func Fatal

func Fatal(pkg string, msg string) error

Fatal for logging any fatal messages where the application is unable to recover from.

func Info

func Info(pkg string, msg string) error

Info for logging any messages about useful information.

func Warning

func Warning(pkg string, msg string) error

Warning for logging any warning messages. Example, bad practices.

Types

This section is empty.

Jump to

Keyboard shortcuts

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