Documentation ¶
Overview ¶
Package cage copies all output to stdout, stderr and log output in a logfile.
Usage: cage.Name = cage.DefaultLogfileName cage.Enable() defer cage.Disable() do stuff...
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Verbose gives mor information on output if set. The value is injected from main packages. Verbose bool // DefaultLogfileName is the pattern for default logfile name. The timestamp is replaced with the actual time. DefaultLogfileName = "2006-01-02_1504-05_cage.log" // Name is the filename of the logfile. "off" inhibits logfile writing. Name = "off" )
Functions ¶
func Disable ¶
func Disable()
Disable ends take notes mode, means parallel writing into a file. It takes no effect when pContainer is nil, what is the case when Enable was started with "off" or "none" as 'Name'.
Types ¶
Click to show internal directories.
Click to hide internal directories.