Module verbosity
source code
Verbose output and debugging facility
Examples:
from verbosity import verbose, debug; debug.active = [1,2,3]; debug(1, "blah")
|
Logger
Base class to provide logging
|
|
LevelLogger
Logger which prints based on level -- ie everything which is smaller
than specified level
|
|
OnceLogger
Logger which prints a message for a given ID just once.
|
|
SetLogger
Logger which prints based on defined sets identified by Id.
|
|
TraceBack
|
|
RelativeTime
Simple helper class to provide relative time it took from previous
invocation
|
|
DebugLogger
Logger for debugging purposes.
|
Imports:
stdout,
stderr,
os,
re,
traceback,
time,
getpid,
basename,
dirname
Return stat information on current process.
Usually it is needed to know where the memory is gone, that is
why VmSize is the default for the field to spit out
TODO: Spit out multiple fields. Use some better way than parsing proc
|
Custom function to include directory name if filename is too common
Also strip .py at the end
|