Skip to content

Commit

Permalink
updated logging tools
Browse files Browse the repository at this point in the history
  • Loading branch information
leanfried committed Apr 23, 2021
1 parent dbc9e83 commit d7673db
Show file tree
Hide file tree
Showing 4 changed files with 402 additions and 205 deletions.
7 changes: 4 additions & 3 deletions folderparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ def logFN(scriptFile:str) -> str:
cfgbase = 'logs'
logfolder = os.path.join(dirpath, cfgbase)
if not os.path.exists(logfolder):
logfolder = os.path.join(os.path.dirname(dirpath), cfgbase)
if not os.path.exists(logfolder):
logfolder = dirpath
os.mkdir(logfolder)
# logfolder = os.path.join(os.path.dirname(dirpath), cfgbase)
# if not os.path.exists(logfolder):
# logfolder = dirpath
return os.path.join(logfolder,f'{base}_{compname}.log')

def openLog(f:str, LOGGERDEFINED:bool, level:str="INFO", exportLog:bool=True) -> bool:
Expand Down
Loading

0 comments on commit d7673db

Please sign in to comment.