Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Print ¶
func Print(level LogLevel, v ...interface{})
Print(level LogLevel, v...)
Used to print a message - actaully calls a lower level Print (PrintCallbacklevel) to do this level - log level v... - Variable data
func PrintCallbacklevel ¶
PrintCallbacklevel(callback int, level LogLevel, v...)
Used to print a message - callback - allows the caller to say how far into the code they are so we can skip back up the stack to get a more helpful filename/line number level - log level v... - Variable data
func SetLogFile ¶
SetLogFileName(name string) bool
Sets up writint go a file. If there is already a file opened, that will be close 1st (allowing for file rollover)
name - New name of the logfile. Will be used relative to where the program is running unless an explicit path name is used Returns a true|false depending on success. Up to the caller to abort/panic
func SetLogLevel ¶
func SetLogLevel(level LogLevel)
Types ¶
type MyLogMsg ¶
type MyLogMsg struct {
// contains filtered or unexported fields
}
internal structure of keep all our stuff
func (*MyLogMsg) Print ¶
Print(level LogLevel, v...)
Used to print a message - actaully calls a lower level Print (PrintCallbacklevel) to do this level - log level v... - Variable data
func (*MyLogMsg) PrintCallbacklevel ¶
PrintCallbacklevel(callback int, level LogLevel, v...)
Used to print a message - callback - allows the caller to say how far into the code they are so we can skip back up the stack to get a more helpful filename/line number level - log level v... - Variable data
func (*MyLogMsg) SetLogFile ¶
SetLogFile(name string) bool
Sets up a log file. If there is already a file opened, that will be close 1st (allowing for file rollover)
name - New name of the logfile. Will be used relative to where the program is running unless an explicit path name is used Returns a true|false depending on success. Up to the caller to abort/panic
func (*MyLogMsg) SetLogLevel ¶
Click to show internal directories.
Click to hide internal directories.