Commit 9bc3e1df authored by Nicolas Delaby's avatar Nicolas Delaby

Use Zope Logger to see log messages

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34138 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2d7d5ee4
# -*- coding: utf-8 -*-
"""some common utilities
"""
import logging
......@@ -12,10 +13,12 @@ class TransformException(Exception):
FB_REGISTRY = None
# logging function
logger = logging.getLogger('PortalTransforms')
from zLOG import LOG
#logger = logging.getLogger('PortalTransforms')
def log(message, severity=logging.INFO):
logger.log(severity, message)
LOG('PortalTransforms', severity, message)
#logger.log(severity, message)
# directory where template for the ZMI are located
import os.path
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment