HomeClusterLabs Projects

Refactor: python: Update the logging module.

Description

Refactor: python: Update the logging module.

  • Only expose the LogFactory class, which is the only thing any outside code was using anyway.
  • Add spacing throughout.
  • Get rid of the return value from writelines, which was never used.
  • Move the arguments from the init methods of subclasses of Logger to the init method of Logger itself. This way, the subclasses have the same argument list as their base class.
  • Turn self.debug_target into a property.
  • Fix pylint suggestions - use "with", don't inherit from object.

Details

Provenance
clumensAuthored on Mar 13 2023, 11:15 AM
Parents
rPe8212bee049d: Refactor: cts: Move logging.py into the _cts module.
Branches
Unknown
Tags
Unknown