diff --git a/devices/lofar2_config.py b/devices/lofar2_config.py deleted file mode 100644 index 581eea4f73a4d276613123ec9bf86bdb7e97a0ea..0000000000000000000000000000000000000000 --- a/devices/lofar2_config.py +++ /dev/null @@ -1,13 +0,0 @@ -#! /usr/bin/env python3 - -import logging - - -def configure_logging(): - # Always also log the hostname because it makes the origin of the log clear. - import socket - hostname = socket.gethostname() - # Set up logging in a way that it can be understood by a human reader, be - # easily grep'ed, be parsed with a couple of shell commands and - # easily fed into an Kibana/Elastic search system. - logging.basicConfig(format = '%(asctime)s.%(msecs)d %(levelname)s - HOST="{}" PID="%(process)d" TNAME="%(threadName)s" TID="%(thread)d" FILE="%(pathname)s" LINE="%(lineno)d" FUNC="%(funcName)s" MSG="%(message)s"'.format(hostname), datefmt = '%Y-%m-%dT%H:%M:%S', level = logging.INFO, Force = True)