-
CLog v0.2.0-a0 Pre-Release
released this
2023-07-29 22:07:46 +01:00 | 2 commits to main since this releaseUpdated: 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@Loggeris 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 theLogger@new()method
instance. -
An existing logger may be returned either by creating a new logger
with the samename=attribute, or by using theLogger@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@printLog2Filemethod has been renamed towriteLog(). In
the case a user wishes to write to console,Logger@printLogmay 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.
Downloads
-
CLog v0.1.1 Pre-Release
released this
2023-07-29 21:28:35 +01:00 | 2 commits to main since this releaseDownloads