Send logs to logfile

This commit is contained in:
moyamo 2015-06-21 21:11:23 +02:00
parent f871ed664b
commit ba54217377

View file

@ -54,6 +54,7 @@ args, unknown = parser.parse_known_args()
YowConstants.PATH_STORAGE='/var/lib/spectrum2/' + args.j
# Logging
logging.basicConfig( \
filename='/var/log/spectrum2/' + args.j + '/backends/backend.log',\
format = "%(asctime)-15s %(levelname)s %(name)s: %(message)s", \
level = logging.DEBUG if args.debug else logging.INFO \
)