Moved clog => src/clog

Change is to be compliant with pyproject.toml and hatchling
This commit is contained in:
Ethan Smith-Coss 2023-07-06 20:14:39 +01:00
parent 1a4a8c488d
commit bccd6155fb
Signed by: TheOnePath
GPG Key ID: 4E7D436CE1A0BAF1
7 changed files with 3 additions and 3 deletions

View File

@ -1 +0,0 @@
from ._logger import Logger

1
src/clog/__init__.py Normal file
View File

@ -0,0 +1 @@
from clog._logger import Logger

View File

@ -257,7 +257,7 @@ class Logger: # class redeclaration & initialisation
_frame = sys._getframe(2) if sys._getframe(1).f_code.co_name in \
dir(Logger) else sys._getframe(1)
## get the executing filename of where log was called
_fname = _frame.f_code.co_filename.removeprefix(
_fname = _frame.f_code.co_filename.lstrip(
os.getcwd()).strip('\\/')
## generate new header for log file and construct new message
_val = [*map(str, value)] # convert all objects to string