log

package module
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 5 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintNLog

func PrintNLog(format string, a ...interface{})

PrintNLog prints to console as well as logs to file.

func PrintNLogError

func PrintNLogError(format string, a ...interface{}) error

PrintNLogError prints to console and log file along with returning the message in error format.

func PrintNLogWarning

func PrintNLogWarning(format string, a ...interface{}) error

PrintNLogWarning prints warning message to console and log file along with returning the message in error format.

func SetLogging

func SetLogging(myLogFile string) error

SetLogging sets the logfile for this program. To handle log rotation, the specified myLogFile would be suffixed with the current date before the log file extension. Ex: If myLogFile := "/log/asum/pm", then the logfile used for logging would be "/log/asum/pm.20181212235500.0000.log".

Types

This section is empty.

Jump to

Keyboard shortcuts

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