just added __name__ to the logger
This commit is contained in:
parent
5661fe9d5c
commit
f7b2eab4f9
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ def setupLogging(logfile="./log/linspector.log", logLevel=logging.DEBUG, logfile
|
||||||
if not path.exists(path.dirname(logfile)):
|
if not path.exists(path.dirname(logfile)):
|
||||||
os.makedirs(path.dirname(logfile))
|
os.makedirs(path.dirname(logfile))
|
||||||
|
|
||||||
log = logging.getLogger("LinspectorLogger")
|
log = logging.getLogger(__name__)
|
||||||
log.setLevel(logging.DEBUG)
|
log.setLevel(logging.DEBUG)
|
||||||
|
|
||||||
consoleHandler = logging.StreamHandler()
|
consoleHandler = logging.StreamHandler()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue