sugar3.logger module

Logging service setup.

STABLE.

class sugar3.logger.TraceRepr

Bases: repr.Repr

repr1(x, level)
repr_bool(x, level)
repr_int(x, level)
sugar3.logger.cleanup()

Clean up the log directory, moving old logs into a numbered backup directory. We only keep _MAX_BACKUP_DIRS of these backup directories around; the rest are removed.

sugar3.logger.get_logs_dir()
sugar3.logger.set_level(level)
sugar3.logger.start(log_filename=None)
sugar3.logger.trace(logger=None, logger_name=None, skip_args=None, skip_kwargs=None, maxsize_list=30, maxsize_dict=30, maxsize_string=300)

Previous topic

sugar3.env module

Next topic

sugar3.mime module

This Page