clog - logging as simple as putting on a shoe.
Go to file
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
clog Updated _logger.py 2022-05-12 14:03:28 +01:00
testing Added pytest testing module 2022-05-12 13:49:32 +01:00
.coveragerc Added .coveragerc 2022-05-12 13:48:52 +01:00
.gitignore Updated .gitignore 2022-05-12 13:45:07 +01:00
conftest.py Added conftest.py for pytest 2022-05-12 13:46:11 +01:00
LICENCE.txt Added LICENCE.txt 2022-05-03 14:51:54 +01:00
pyproject.toml Updated pyproject.toml 2022-05-04 21:24:28 +01:00
README.md Added README.md 2022-05-03 23:36:13 +01:00
requirements-dev.txt Added requirements-dev.txt 2022-05-04 00:18:43 +01:00
setup.cfg Updated setup.cfg 2022-05-12 13:43:55 +01:00
setup.py Updated automation build scripts 2022-05-04 21:24:47 +01:00
tox.ini Updated automation build scripts 2022-05-04 21:24:47 +01:00