Add a basic logging system.

This commit is contained in:
Dave Page
2014-12-16 15:54:29 +00:00
parent cd9d005c49
commit 2d21ea059b
2 changed files with 63 additions and 4 deletions

34
web/config.py Normal file
View File

@@ -0,0 +1,34 @@
##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2014, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
# config.py - Core application configuration settings
#
##########################################################################
from logging import *
# Application log level - one of:
# CRITICAL 50
# ERROR 40
# WARNING 30
# SQL 25
# INFO 20
# DEBUG 10
# NOTSET 0
PGADMIN_LOG_LEVEL = DEBUG
# Log file name
PGADMIN_LOG_FILE = 'pgadmin4.log'
# Log format. See
PGADMIN_LOG_FORMAT='%(asctime)s: %(levelname)s\t%(name)s:\t%(message)s'
# Load local config overrides
try:
from config_local import *
except ImportError:
pass