chg: Set default log format to include timestamp

Fixes #32
pull/38/head
Hannah Ward 2017-12-27 10:14:36 +00:00
parent 5192d90576
commit f1f4addfe3
No known key found for this signature in database
GPG Key ID: 6F3BAD60DE190290
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ from misp_stix_converter.converters import lint_roller
import logging
# Set up logger
logging.basicConfig(level=logging.INFO)
logging.basicConfig(level=logging.INFO, format="'%(asctime)s - %(name)s - %(levelname)s - %(message)s')")
log = logging.getLogger(__name__)
# Try to load in config

View File

@ -17,7 +17,7 @@ args = parser.parse_args()
# Set up a logger for logging's sake
log = logging.getLogger(__name__)
logging.basicConfig(filename="poll.log")
logging.basicConfig(filename="poll.log", format="'%(asctime)s - %(name)s - %(levelname)s - %(message)s')")
log.setLevel(logging.DEBUG if args.verbose else logging.INFO)
# If we want, print the output to stdout