Skip to content

Instantly share code, notes, and snippets.

@ejucovy
Created April 2, 2013 15:46
Show Gist options
  • Save ejucovy/5293261 to your computer and use it in GitHub Desktop.
Save ejucovy/5293261 to your computer and use it in GitHub Desktop.
${chrome.logging.debug("This is a log message in a genshi template")}
--- a/trac/web/chrome.py
+++ b/trac/web/chrome.py
@@ -660,6 +660,7 @@ class Chrome(Component):
chrome = {'metas': [], 'links': {}, 'scripts': [], 'script_data': {},
'ctxtnav': [], 'warnings': [], 'notices': []}
+ chrome['logging'] = self.log
req.chrome = chrome
htdocs_location = self.htdocs_location or req.href.chrome('common')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment