logging

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TheLogger

type TheLogger struct {
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(fileName string) *TheLogger

NewLogger returns a new instance of TheLogger and takes in a fileName for the log file.

func (*TheLogger) Close

func (l *TheLogger) Close()

Close closes the log file that is uses

func (*TheLogger) Debug

func (l *TheLogger) Debug(message string)

Debug is for debug items you want to log, uses fmt.Println for the message

func (*TheLogger) Debugf

func (l *TheLogger) Debugf(template string, args ...interface{})

Debugf is for debugging with a template string and args, uses fmt.Printf for the output

func (*TheLogger) Error

func (l *TheLogger) Error(message string)

Error is for error messages, uses fmt.Println for messages

func (*TheLogger) Errorf

func (l *TheLogger) Errorf(template string, args ...interface{})

Errorf is for error output with a template string and args, uses fmt.Printf to log messages

func (*TheLogger) Info

func (l *TheLogger) Info(message string)

Info is for information that you want to log, uses fmt.Println for the message

func (*TheLogger) Infof

func (l *TheLogger) Infof(template string, args ...interface{})

Infof is for logging information with a template string and args, uses fmt.Printf for the output

Jump to

Keyboard shortcuts

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