logger

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MutexLog *logFileMutex
	LogPath  string
	LogFile  *os.File
	Clog     *log.Logger
)

Functions

func CleanOldLogs added in v0.0.2

func CleanOldLogs(logFile *logFileMutex) error

CleanOldLogs cleans old log entries from the log file

func GetLogFile added in v0.0.2

func GetLogFile() (*logFileMutex, error)

GetLogFile returns an io.Writer with a mutex on it so that different functions can access the same file

func Setup

func Setup() *log.Logger

Setup sets up the logger and log file relative to the executable

Types

This section is empty.

Jump to

Keyboard shortcuts

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