Send logs to logfile
This commit is contained in:
parent
f871ed664b
commit
ba54217377
|
@ -54,6 +54,7 @@ args, unknown = parser.parse_known_args()
|
||||||
YowConstants.PATH_STORAGE='/var/lib/spectrum2/' + args.j
|
YowConstants.PATH_STORAGE='/var/lib/spectrum2/' + args.j
|
||||||
# Logging
|
# Logging
|
||||||
logging.basicConfig( \
|
logging.basicConfig( \
|
||||||
|
filename='/var/log/spectrum2/' + args.j + '/backends/backend.log',\
|
||||||
format = "%(asctime)-15s %(levelname)s %(name)s: %(message)s", \
|
format = "%(asctime)-15s %(levelname)s %(name)s: %(message)s", \
|
||||||
level = logging.DEBUG if args.debug else logging.INFO \
|
level = logging.DEBUG if args.debug else logging.INFO \
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue