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
|
||||
|
|
@ -368,4 +368,4 @@ class Logger: # class redeclaration & initialisation
|
|||
## reset the colour sequence back to normal
|
||||
print(printfmt.Colours.NORMAL, end=e, file=Logger.__stdpipe, flush=flsh)
|
||||
else:
|
||||
print(*msg, sep=s, end=e, file=Logger.__stdpipe, flush=flsh) # type: ignore
|
||||
print(*msg, sep=s, end=e, file=Logger.__stdpipe, flush=flsh) # type: ignore
|
||||
Loading…
Reference in New Issue
Block a user