mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-01-04 15:50:30 +01:00
added the name of the talking function to the logging
This commit is contained in:
parent
9b6e5c8da3
commit
bcc0fca656
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,4 +1,5 @@
|
|||
*.psd
|
||||
*.pyc
|
||||
*.log
|
||||
config.ini
|
||||
config.ini
|
||||
log/
|
||||
|
|
|
|||
|
|
@ -129,3 +129,5 @@ For configuration-details see `service/README.md`.
|
|||
- Multimon-NG
|
||||
- Python Support
|
||||
- MySQL Connector for Python (for MySQL-plugin)
|
||||
|
||||
Thanks to smith_fms and McBo from Funkmeldesystem.de - Forum for Inspiration and Groundwork!
|
||||
|
|
|
|||
|
|
@ -8,7 +8,9 @@ Through a simple plugin system, data can easily be transferred to other applicat
|
|||
For more information see the README.md
|
||||
|
||||
@author: Bastian Schroll
|
||||
@author: Jens Herrmann
|
||||
@author: Jens Herrmann
|
||||
|
||||
Thanks to smith_fms and McBo from Funkmeldesystem.de - Forum for Inspiration and Groundwork!
|
||||
|
||||
GitHUB: https://github.com/Schrolli91/BOSWatch
|
||||
"""
|
||||
|
|
@ -90,7 +92,7 @@ try:
|
|||
myLogger = logging.getLogger()
|
||||
myLogger.setLevel(logging.DEBUG)
|
||||
# set log string format
|
||||
formatter = logging.Formatter('%(asctime)s - %(module)-15s [%(levelname)-8s] %(message)s', '%d.%m.%Y %H:%M:%S')
|
||||
formatter = logging.Formatter('%(asctime)s - %(module)-15s %(funcName)-15s [%(levelname)-8s] %-4ds %(message)s', '%d.%m.%Y %H:%M:%S')
|
||||
# create a file logger
|
||||
fh = MyTimedRotatingFileHandler.MyTimedRotatingFileHandler(globals.log_path+"boswatch.log", "midnight", interval=1, backupCount=999)
|
||||
# Starts with log level >= Debug
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ def printHeader(args):
|
|||
print " / /_/ / /_/ /___/ /| |/ |/ / /_/ / /_/ /__/ / / / t"
|
||||
print " /_____/\____//____/ |__/|__/\__,_/\__/\___/_/ /_/ a"
|
||||
print " German BOS Information Script "
|
||||
print " by Bastian Schroll "
|
||||
print " by Bastian Schroll, Jens Herrmann "
|
||||
print ""
|
||||
|
||||
print "Frequency: "+args.freq
|
||||
|
|
|
|||
Loading…
Reference in a new issue