added the name of the talking function to the logging

This commit is contained in:
Schrolli 2015-06-30 07:59:27 +02:00
parent 9b6e5c8da3
commit bcc0fca656
4 changed files with 9 additions and 4 deletions

3
.gitignore vendored
View file

@ -1,4 +1,5 @@
*.psd
*.pyc
*.log
config.ini
config.ini
log/

View file

@ -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!

View file

@ -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

View file

@ -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