Add a default logging configuration file, and small typo fixes

This commit is contained in:
Guillaume Ayoub
2011-05-07 12:52:54 +02:00
parent e87ffeadb1
commit 899379d073
3 changed files with 71 additions and 5 deletions

View File

@ -32,7 +32,7 @@ import logging.config
from radicale import config
LOGGER = logging.getLogger("radicale")
LOGGER = logging.getLogger()
FILENAME = os.path.expanduser(config.get("logging", "config"))
def start(debug=False):
@ -46,5 +46,5 @@ def start(debug=False):
else:
# Default configuration, standard output
handler = logging.StreamHandler(sys.stdout)
handler.setFormatter(logging.Formatter("%(levelname)s: %(message)s"))
handler.setFormatter(logging.Formatter("%(message)s"))
LOGGER.addHandler(handler)