zkay.my_logging.logger
Module Contents
- zkay.my_logging.logger.timestamp
- zkay.my_logging.logger.shutdown(handler_list=None)
- zkay.my_logging.logger.DATA = 5
- zkay.my_logging.logger.data(key, value)
Log (key, value) to log-level DATA
- zkay.my_logging.logger.get_log_dir(parent_dir, label)
Convenience function for getting a log directory
- zkay.my_logging.logger.get_log_file(label='default', parent_dir=None, filename='log', include_timestamp=True)
- zkay.my_logging.logger.prepare_logger(log_file=None, silent=True)
- class zkay.my_logging.logger.OnlyData(name='')
Bases:
logging.Filter
Filter instances are used to perform arbitrary filtering of LogRecords.
Loggers and Handlers can optionally use Filter instances to filter records as desired. The base filter class only allows events which are below a certain point in the logger hierarchy. For example, a filter initialized with “A.B” will allow events logged by loggers “A.B”, “A.B.C”, “A.B.C.D”, “A.B.D” etc. but not “A.BB”, “B.A.B” etc. If initialized with the empty string, all events are passed.
- filter(self, record)
Determine if the specified record is to be logged.
Is the specified record to be logged? Returns 0 for no, nonzero for yes. If deemed appropriate, the record may be modified in-place.