From dae134cb5c60f1749ed13e355af8ac1f7d6f7297 Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Sun, 15 Dec 2013 09:45:18 -0600 Subject: [PATCH] NOW inc. in dmrlink.py --- ipsc/ipsc_logger.py | 71 --------------------------------------------- 1 file changed, 71 deletions(-) delete mode 100644 ipsc/ipsc_logger.py diff --git a/ipsc/ipsc_logger.py b/ipsc/ipsc_logger.py deleted file mode 100644 index ec195ad..0000000 --- a/ipsc/ipsc_logger.py +++ /dev/null @@ -1,71 +0,0 @@ -# Copyright (c) 2013 Cortney T. Buffington, N0MJS and the K0USY Group. n0mjs@me.com -# -# This work is licensed under the Creative Commons Attribution-ShareAlike -# 3.0 Unported License.To view a copy of this license, visit -# http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to -# Creative Commons, 444 Castro Street, Suite 900, Mountain View, -# California, 94041, USA. - -# Logging system configuration - -from logging.config import dictConfig -import logging - -# Full path/name of the log file: -_log_file_name = '/tmp/dmrlink.log' - -dictConfig({ - 'version': 1, - 'disable_existing_loggers': False, - 'filters': { - }, - 'formatters': { - 'verbose': { - 'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s' - }, - 'timed': { - 'format': '%(levelname)s %(asctime)s %(message)s' - }, - 'simple': { - 'format': '%(levelname)s %(message)s' - }, - }, - 'handlers': { - 'console': { - 'level': 'DEBUG', - 'class': 'logging.StreamHandler', - 'formatter': 'simple' - }, - 'console-timed': { - 'level': 'DEBUG', - 'class': 'logging.StreamHandler', - 'formatter': 'timed' - }, - 'file': { - 'level': 'DEBUG', - 'class': 'logging.FileHandler', - 'formatter': 'simple', - 'filename': _log_file_name, - }, - 'file-timed': { - 'level': 'DEBUG', - 'class': 'logging.FileHandler', - 'formatter': 'timed', - 'filename': _log_file_name, - }, - 'syslog': { - 'level': 'INFO', - 'class': 'logging.handlers.SysLogHandler', - 'formatter': 'verbose', - } - }, - 'loggers': { - 'dmrlink': { -# 'handlers': ['file-timed', 'syslog'], - 'handlers': ['console'], - 'level': 'INFO', - 'propagate': True, - } - } -}) -logger = logging.getLogger('dmrlink')