PyDocs

Nav

Generic Operating System Services

Handler

logging

class (source)
  • Handler(level=0)
Handler instances dispatch logging events to specific destinations.

The base handler class. Acts as a placeholder which defines the Handler
interface. Handlers can optionally use Formatter instances to format
records as desired. By default, no formatter is specified; in this case,
the 'raw' message as determined by record.message is logged.
Members of Handler

_

__init__
Initializes the instance - basically setting the formatter to None and the filter list to empty.

a

acquire
Acquire the I/O thread lock.
addFilter
Add the specified filter to this handler.

c

close
Tidy up any resources used by the handler.
createLock
Acquire a thread lock for serializing access to the underlying I/O.

e

emit
Do whatever it takes to actually log the specified logging record.

f

filter
Determine if a record is loggable by consulting all the filters.
flush
Ensure all logging output has been flushed.
format
Format the specified record.

h

handle
Conditionally emit the specified logging record.
handleError
Handle errors which occur during an emit() call.

r

release
Release the I/O thread lock.
removeFilter
Remove the specified filter from this handler.

s

setFormatter
Set the formatter for this handler.
setLevel
Set the logging level of this handler.
0 Examples
No examples for logging/Handler.
See Also
No see-alsos for logging/Handler
0 Notes
No notes for Handler