From 7e2341d57081225f9a5b0e1700b146192a3da6d6 Mon Sep 17 00:00:00 2001 From: thijs snijder <snijder@astron.nl> Date: Wed, 21 Apr 2021 16:17:53 +0200 Subject: [PATCH] removed lofar2_config.py --- devices/lofar2_config.py | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 devices/lofar2_config.py diff --git a/devices/lofar2_config.py b/devices/lofar2_config.py deleted file mode 100644 index 581eea4f7..000000000 --- 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) -- GitLab