lib.cuckoo.core.log.ConsoleHandler

Package lib :: Package cuckoo :: Package core :: Module log :: Class ConsoleHandler |
[hide private]
[frames] | no frames]

# Class ConsoleHandler

source code

          object --+
                   |
    logging.Filterer --+
                       |
         logging.Handler --+
                           |
       logging.StreamHandler --+
                               |
                              ConsoleHandler

Logging to console handler.

Instance Methods | [hide private]
emit(self, record) Emit a record. | source code
Inherited from `logging.StreamHandler`: `__init__`, `flush` Inherited from `logging.Handler`: `acquire`, `close`, `createLock`, `format`, `get_name`, `handle`, `handleError`, `release`, `setFormatter`, `setLevel`, `set_name` Inherited from `logging.Filterer`: `addFilter`, `filter`, `removeFilter` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Class Variables | [hide private]
Inherited from `logging.Handler`: `name`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### emit(self, record) | source code
Emit a record. If a formatter is specified, it is used to format the record. The record is then written to the stream with a trailing newline. If exception information is present, it is formatted using traceback.print_exception and appended to the stream. If the stream has an 'encoding' attribute, it is used to determine how to do the output to the stream. Overrides: logging.Handler.emit (inherited documentation)