logging

package
v0.0.0-...-9d62925 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//Logger to log straight to the console
	Logger = log.New(os.Stdout, "", log.Ldate|log.Ltime|log.Lshortfile)

	//ErrorLogger is here to log your mistakes
	ErrorLogger *log.Logger
)

Functions

func BackupLog

func BackupLog(data ...interface{})

BackupLog logs users module usage

func CMDLog

func CMDLog(data ...interface{})

CMDLog is used to log user's commands

func CloseLog

func CloseLog()

CloseLog will close the handle on log files when EndGame is called

func InitLogger

func InitLogger()

InitLogger sets up the logging files for later use

func ModLog

func ModLog(data ...interface{})

ModLog logs users module usage

func TheRecovery

func TheRecovery()

TheRecovery is used to save the application from dying

Types

This section is empty.

Jump to

Keyboard shortcuts

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