Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(logStrings ...interface{})
Debug logs a string as DEBUG We write to disk if debug is true
func Error ¶
func Error(logStrings ...interface{})
Error logs a string a ERROR We print to stdout, write to disk, and then panic
Example ¶
ExampleError tests the output of a log sent to ERROR
// Set up what we expect logString := "Error String!" // Prepare to recover from a panic defer func() { recover() }() // Run the function Error(logString)
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.