__init__(self,
name,
outfile=None,
filename=None,
logtype=None)
(Constructor)
| source code
|
Creates a Warn object. Warn objects provide useful tools to show
errors and warnings. |name| The name of the warn object |outfile| An
output object in case that you have a default output. If None, a file
will be created |logtype| If it must use syslog. If none it uses output
to file. Possible values are: Warn.LOG_FILE, Warn.LOG_SYSLOG,
Warn.LOG_STDERR Default: LOG_STDERR If LOG_FILE is specified the
constructor needs any of the following keyword arguments:
filename='filename-to-output' or outfile=fileobject
NOTE: If output already has a handler, this handler is used overriding
any of the opening instructions. In order to override, you need to modify
the handler (using warn.output) directly
|