clog/clog
theonepath f22e6ea554
Updated _logger.py
Changed module in accordance to results of pytest unit testing.

`__DEFAULT_OUT_FILE` now converts a file spec into a real pathspec to
the system. This is now considered a constant default attribute.

New attribute `__default_out_file` to take the value of
`__DEFAULT_OUT_FILE` on initial class initialisation. However, this
attribute may be changed on a new class construction, and is used by the
class itself as the default output to file when logging.

Attribute `log` is reflective of `__default_out_file` and CANNOT be
changed by the user to affect class instance, making it Read-Only.

Added new public method `new`, which can reinitialise the
Singleton instance to change the default logging file. Note, once an
instance is created, the output file cannot be changed unless `new` is
invoked with a new file pathspec. This is to guarantee integrity of
logging output to a single file, unless otherwise required.

Class modifications to address changes listed above and bug fixes
identified from unit testing.
2022-05-12 14:03:28 +01:00
..
utils Updated utils/common.py 2022-05-12 14:01:06 +01:00
__init__.py Moved package modules into clog 2022-05-03 23:28:44 +01:00
__version__.py Moved package modules into clog 2022-05-03 23:28:44 +01:00
_logger.py Updated _logger.py 2022-05-12 14:03:28 +01:00