add log_level config setting
authorTero Marttila <terom@fixme.fi>
Fri, 05 Jun 2009 23:02:30 +0300
changeset 67 01220ae43902
parent 66 322e5cd0cb1f
child 68 49388e9fd5fa
add log_level config setting
degal/config.py
--- a/degal/config.py	Fri Jun 05 23:00:38 2009 +0300
+++ b/degal/config.py	Fri Jun 05 23:02:30 2009 +0300
@@ -2,14 +2,24 @@
     Configuration
 """
 
+import logging
+
 class Configuration (object) :
     """
         Various configuration settings
     """
+    ## runtime settings
+
+    # do not modify anything
+    read_only           = False
 
     # the path to the gallery
     gallery_path        = "."
 
+    # minimum logging level
+    log_level           = logging.INFO
+
+    ## detailed configuration
     # the name of the gallery
     gallery_title       = "Image Gallery"
 
@@ -45,11 +55,6 @@
         ("FocalLength",             "Focal length"              )
     ]
     
-    ## runtime settings
-
-    # do not modify anything
-    read_only           = False
-
 
     ### functions
     def is_image (self, file) :