Documentation
¶
Overview ¶
Package log handles logging for the client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Write ¶
func Write(fmtstr string, args ...interface{})
Write writes a string to the log file. Nothing happens if the log file is not initialised (see LogInit). Depending on the number of arguments passed, Write either behaves as a Print or a Printf. The first argument must always be a string. If more than one argument is given, the function behaves as Printf.
func WriteError ¶
func WriteError(err error)
WriteError prints err to the logfile and returns, effectively ignoring the error. No logging is performed if err == nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.