CLog v0.2.0-a0

Ethan Smith-Coss
Sat, 29 Jul 2023 22:07:46 +0100

Updated: common.py

Changed value name from 'NORMAL' to 'INFO'.

Updated: _logger.py

Major changes to the structure behaviour when logging.

Class no longer implements pseudologs as class methods. These are now
instance methods but return the class instance to allow for method
chaining.

class@Logger is no longer a singleton pattern. Class may now either
return a new logger instance, or return an existing logger if matched.
A user may recreate an existing logger using the Logger@new() method
instance.

An existing logger may be returned either by creating a new logger
with the same name= attribute, or by using the Logger@get() static
method and passing the name of an existing logger.

A context manager, class@LoggerStore, has been implemented. This is to
allow for multiple loggers to be created and kept track of during the
lifetime of a program. This class is fully static and only accessed by
internal processes.

The Logger@printLog2File method has been renamed to writeLog(). In
the case a user wishes to write to console, Logger@printLog may be
used. Note, pseudolog methods still print to log as default behaviour.

Other changes to class methods to be appropriate for the amended
changes outlined above.

Bug fixes.