Back to index

plone3  3.1.7
Classes | Functions | Variables
Archetypes.debug Namespace Reference

Classes

class  SafeFileWrapper
class  Log
class  NullLog
class  ClassLog
class  ZPTLogger
class  ZLogger

Functions

def warn
def deprecated

Variables

tuple logger = logging.getLogger('Archetypes')
tuple _default_logger = ClassLog()
tuple _zlogger = ZLogger()
 log = zlog_zlogger.log
 log_exc = _zlogger.log_exc

Function Documentation

def Archetypes.debug.deprecated (   msg,
  level = 3 
)

Definition at line 164 of file debug.py.

00164 
00165 def deprecated(msg, level=3):
00166     # level is the stack level
00167     #   1: the line below
00168     #   2: the line calling this function
00169     #   3: the line calling the function that
00170     #      called this function
00171     if DEBUG:
00172         warnings.warn(msg, DeprecationWarning, level)

def Archetypes.debug.warn (   msg,
  level = 3 
)

Definition at line 155 of file debug.py.

00155 
00156 def warn(msg, level=3):
00157     # level is the stack level
00158     #   1: the line below
00159     #   2: the line calling this function
00160     #   3: the line calling the function that
00161     #      called this function
00162     if DEBUG:
00163         warnings.warn(msg, UserWarning, level)

Here is the caller graph for this function:


Variable Documentation

Definition at line 173 of file debug.py.

Definition at line 174 of file debug.py.

Archetypes.debug.log = zlog_zlogger.log

Definition at line 176 of file debug.py.

Archetypes.debug.log_exc = _zlogger.log_exc

Definition at line 177 of file debug.py.

tuple Archetypes.debug.logger = logging.getLogger('Archetypes')

Definition at line 13 of file debug.py.