Back to index

plone3  3.1.7
Functions | Variables
CMFPlone.log Namespace Reference

Functions

def log
def log_exc
def log_deprecated

Variables

tuple logger = logging.getLogger('Plone')

Detailed Description

This module resolves an import order dependency.
Don't import from here, import from utils.

Function Documentation

def CMFPlone.log.log (   message,
  summary = '',
  severity = logging.INFO 
)

Definition at line 11 of file log.py.

00011 
00012 def log(message, summary='', severity=logging.INFO):
00013     logger.log(severity, '%s \n%s', summary, message)
00014 
# log message + exception info
def CMFPlone.log.log_deprecated (   message,
  summary = 'Deprecation Warning',
  severity = logging.WARNING 
)

Definition at line 20 of file log.py.

00020 
00021                    severity=logging.WARNING):
00022     logger.log(severity, '%s \n%s', summary, message)

Here is the caller graph for this function:

def CMFPlone.log.log_exc (   message = '',
  summary = '',
  severity = logging.ERROR 
)

Definition at line 15 of file log.py.

00015 
00016 def log_exc(message='', summary='', severity=logging.ERROR):
00017     logger.log(severity, '%s \n%s', summary, message, exc_info=True)
00018 
# deprecration warning

Here is the call graph for this function:


Variable Documentation

tuple CMFPlone.log.logger = logging.getLogger('Plone')

Definition at line 8 of file log.py.