clog - logging as simple as putting on a shoe.
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. |
||
|---|---|---|
| clog | ||
| testing | ||
| .coveragerc | ||
| .gitignore | ||
| conftest.py | ||
| LICENCE.txt | ||
| pyproject.toml | ||
| README.md | ||
| requirements-dev.txt | ||
| setup.cfg | ||
| setup.py | ||
| tox.ini | ||