diff --git a/neomaster b/neomaster index 887602579eb64bac169ca2a117c6cd52a95159e5..d14c98c249a1db7a688b8fb737e9c6af2ff2cc44 100755 --- a/neomaster +++ b/neomaster @@ -36,10 +36,11 @@ config = options.config or 'neo.conf' section = options.section or 'master' logfile = options.logfile or None +format='[%(module)12s:%(lineno)3d] %(message)s' if options.verbose: - logging.basicConfig(filename = logfile, level = logging.DEBUG) + logging.basicConfig(filename=logfile, level=logging.DEBUG, format=format) else: - logging.basicConfig(filename = logfile, level = logging.WARNING) + logging.basicConfig(filename=logfile, level=logging.WARNING, format=format) app = Application(config, section) app.run() diff --git a/neostorage b/neostorage index af4f7f6c991d639e0562e02c1dbb35965dc76e72..45a8768d7a3026ba381dca34a9e7a5cba818ffa6 100755 --- a/neostorage +++ b/neostorage @@ -38,10 +38,11 @@ config = options.config or 'neo.conf' section = options.section or 'storage' logfile = options.logfile or None +format='[%(module)12s:%(lineno)3d] %(message)s' if options.verbose: - logging.basicConfig(filename = logfile, level = logging.DEBUG) + logging.basicConfig(filename=logfile, level=logging.DEBUG, format=format) else: - logging.basicConfig(filename = logfile, level = logging.WARNING) + logging.basicConfig(filename=logfile, level=logging.WARNING, format=format) app = Application(config, section, options.reset) app.run()