Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Public Attributes
arcom.logger.Logger Class Reference

List of all members.

Public Member Functions

def __init__
def msg

Public Attributes

 logger

Detailed Description

Definition at line 9 of file logger.py.


Constructor & Destructor Documentation

def arcom.logger.Logger.__init__ (   self,
  logger 
)

Definition at line 11 of file logger.py.

00011 
00012     def __init__(self, logger):
00013         self.logger = logger


Member Function Documentation

def arcom.logger.Logger.msg (   self,
  args 
)
docstring for log

Definition at line 14 of file logger.py.

00014 
00015     def msg(self, *args):
00016         """docstring for log"""
00017         # initializing logging facility
00018         args = list(args)
00019         if not args:
00020             severity = arc.VERBOSE
00021         elif args[0] in log_levels:
00022             severity = args.pop(0)
00023         else:
00024             severity = arc.VERBOSE
00025         if not args:
00026             args = ['Python exception:\n', traceback.format_exc()]
00027             severity = arc.ERROR
00028         mesg = ' '.join([str(arg) for arg in args])
00029         self.logger.msg(severity, mesg)
00030         return mesg

Member Data Documentation

Definition at line 12 of file logger.py.


The documentation for this class was generated from the following file: