Moved clog => src/clog
Change is to be compliant with pyproject.toml and hatchling
This commit is contained in:
parent
1a4a8c488d
commit
bccd6155fb
|
|
@ -1 +0,0 @@
|
|||
from ._logger import Logger
|
||||
1
src/clog/__init__.py
Normal file
1
src/clog/__init__.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
from clog._logger import Logger
|
||||
|
|
@ -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
|
||||
Loading…
Reference in New Issue
Block a user