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 ¶
PrintNLogError prints to console and log file along with returning the message in error format.
func PrintNLogWarning ¶
PrintNLogWarning prints warning message to console and log file along with returning the message in error format.
func SetLogging ¶
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.
Click to show internal directories.
Click to hide internal directories.