[Checkins] SVN: grokproject/trunk/ Add grok-logger in .ini files.

Uli Fouquet uli at gnufix.de
Fri May 21 14:00:17 EDT 2010


Log message for revision 112629:
  Add grok-logger in .ini files.

Changed:
  U   grokproject/trunk/CHANGES.txt
  U   grokproject/trunk/grokproject/template/etc/debug.ini.in_tmpl
  U   grokproject/trunk/grokproject/template/etc/deploy.ini.in_tmpl

-=-
Modified: grokproject/trunk/CHANGES.txt
===================================================================
--- grokproject/trunk/CHANGES.txt	2010-05-21 17:39:24 UTC (rev 112628)
+++ grokproject/trunk/CHANGES.txt	2010-05-21 18:00:16 UTC (rev 112629)
@@ -4,6 +4,18 @@
 1.0.4 (unreleased)
 ------------------
 
+* Add logger ``grok`` in ``debug.ini`` and ``deploy.ini``
+  templates. This logger logs warning messages emitted by more recent
+  versions of grokcore.view template registry (and has no effect
+  with older grok versions).
+
+  By default warning messages are displayed in ``debug.ini`` and
+  disabled in ``deploy.ini``.
+
+  To change settings, edit section ``[logger_grok]`` in
+  ``etc/debug.ini.in`` and ``etc/deploy.ini.in`` respectively and
+  rerun buildout afterwards.
+
 * Use a new "version information" layout on http://grok.zope.org/releaseinfo.
 
   More specifically, the "bundlemaker" or "eggbasket" feature is no longer

Modified: grokproject/trunk/grokproject/template/etc/debug.ini.in_tmpl
===================================================================
--- grokproject/trunk/grokproject/template/etc/debug.ini.in_tmpl	2010-05-21 17:39:24 UTC (rev 112628)
+++ grokproject/trunk/grokproject/template/etc/debug.ini.in_tmpl	2010-05-21 18:00:16 UTC (rev 112629)
@@ -4,7 +4,7 @@
 #
 
 [loggers]
-keys = root, wsgi
+keys = root, wsgi, grok
 
 [handlers]
 keys = console, accesslog
@@ -41,6 +41,15 @@
 qualname = wsgi
 propagate = 0
 
+[logger_grok]
+# Set level to ERROR or above if you want to suppress
+# grok template registry warnings on commandline.
+level = INFO
+handlers = console
+qualname = grokcore.view
+propagate = 0
+
+
 [filter:translogger]
 use = egg:Paste#translogger
 setup_console_handler = False

Modified: grokproject/trunk/grokproject/template/etc/deploy.ini.in_tmpl
===================================================================
--- grokproject/trunk/grokproject/template/etc/deploy.ini.in_tmpl	2010-05-21 17:39:24 UTC (rev 112628)
+++ grokproject/trunk/grokproject/template/etc/deploy.ini.in_tmpl	2010-05-21 18:00:16 UTC (rev 112629)
@@ -4,7 +4,7 @@
 #
 
 [loggers]
-keys = root, wsgi
+keys = root, wsgi, grok
 
 [handlers]
 keys = console, accesslog
@@ -22,6 +22,14 @@
 qualname = wsgi
 propagate = 0
 
+[logger_grok]
+# Set level to WARNING or below if you want to see
+# grok template registry warnings on commandline.
+level = ERROR
+handlers = console
+qualname = grokcore.view
+propagate = 0
+
 [handler_console]
 class = StreamHandler
 args = (sys.stderr,)



More information about the checkins mailing list