Package AccessGrid :: Module Log
[show private | hide private]
[frames | no frames]

Module AccessGrid.Log

AccessGrid Log module

Enables toolkit wide logging. Described in AGEP-0118.

Depends on python logging module.

Extends the python logging module by:

EXAMPLE: from AccessGrid import Log log = Log.GetLogger(Log.VenueClient) # OR log = Log.GetLogger("TestApp")

hdlr = Log.FileHandler("TestLog.log") hdlr.setFormatter(Log.GetFormatter()) hdlr.setLevel(Log.DEBUG) # handle default loggers level_hdlr = Log.HandleLoggers(hdlr, Log.GetDefaultLoggers()) # OR level_hdlr = Log.LoggerLevels(hdlr, Log.GetDefaultLoggers())

# Set level for all loggers if desired. level_hdlr.SetLevel(Log.DEBUG) # Set per component level(s) level_hdlr.SetLevel(Log.WARN, Log.EventService)

log.debug("Test debug") log.warn("Test warn")
Classes
LevelHandler  
LoggerLevels  

Function Summary
  GetDefaultLevel(name)
  GetDefaultLoggers()
  GetFormatter()
  GetHighestLevel()
  GetLogger(name, defaultHandled, defaultLoggerList)
  GetLoggers()
  GetLowDetailFormatter()
  GetUsageFormatter()
  HandleLoggers(hdlr, loggerNamesList, handleDefaults, defaultLoggerList)
  highdetail_func(self, msg, *args, **kwargs)
Log 'msg % args' with severity 'HIGHDETAIL'.
  RemoveLoggerLevels(loggerLevels, logList)
  SetDefaultLevel(name, level)
  verbose_func(self, msg, *args, **kwargs)
Log 'msg % args' with severity 'VERBOSE'.

Variable Summary
str AGService = 'AGService'
str AppDb = 'AppDb'
str AppMonitor = 'AppMonitor'
str AsyncService = 'AsyncService'
str AuthorizationUI = 'AuthorizationUI'
str BridgeServer = 'BridgeServer'
str CertificateManager = 'CertificateManager'
str CertificateManagerWXGUI = 'CertificateManagerWXGUI'
str CertificateRepository = 'CertificateRepository'
str CertificateRequestTool = 'CertificateRequestTool'
str CertReqService = 'CertReqService'
int CRITICAL = 50                                                                    
str CRSClient = 'CRSClient'
str DataService = 'DataService'
str DataStore = 'DataStore'
str DataStoreClient = 'DataStoreClient'
list defaultLoggers = ['Hosting', 'Toolkit', 'Types', 'Proces...
FileHandler defLogHandler = <logging.FileHandler instance at 0x01119...
StreamHandler defStreamHandler = <logging.StreamHandler instance at 0x...
int ERROR = 40                                                                    
str EventClient = 'EventClient'
str EventService = 'EventService'
str fn = 'c:\\docume~1\\turam\\locals~1\\temp\\tmpqm-ebj.agl...
int HIGHDETAIL = 3                                                                     
int HIGHEST_LEVEL = 3                                                                     
str Hosting = 'Hosting'
int INFO = 20                                                                    
str Logging = 'Logging'
LoggerLevels memLevels = <AccessGrid.Log.LoggerLevels instance at 0x0...
MemoryHandler mlh = <logging.handlers.MemoryHandler instance at 0x0111...
str NodeManagementUIClasses = 'NodeManagementUIClasses'
str NodeService = 'NodeService'
str NodeSetupWizard = 'NodeSetupWizard'
int NOTSET = 0                                                                     
str Platform = 'Platform'
str ProcessManager = 'ProcessManager'
str pyGlobus = 'pyGlobus'
str Security = 'Security'
str ServiceManager = 'ServiceManager'
str SharedApplication = 'SharedApplication'
str SimpleTextProcessor = 'SimpleTextProcessor'
str TextClient = 'TextClient'
str TextConnection = 'TextConnection'
str TextService = 'TextService'
str Toolkit = 'Toolkit'
str Types = 'Types'
str UIUtilities = 'UIUtilities'
str Usage = 'Usage'
str Utilities = 'Utilities'
str VenueClient = 'VenueClient'
str VenueClientController = 'VenueClientController'
str VenueClientUI = 'VenueClientUI'
str VenueClientUIClasses = 'VenueClientUIClasses'
str VenueManagement = 'VenueManagement'
str VenueServer = 'VenueServer'
int VERBOSE = 7                                                                     
int WARN = 30                                                                    
list _componentNames = []
Formatter _defaultFormatter = <logging.Formatter instance at 0x011...
dict _defaultLevels = {'NodeManagementUIClasses': 30, 'TextSe...
dict _loggerLevels = {<logging.handlers.MemoryHandler instanc...
list _loggers = [<logging.Logger instance at 0x01119F08>, <lo...
Formatter _lowDetailFormatter = <logging.Formatter instance at 0x0...
Formatter _usageFormatter = <logging.Formatter instance at 0x01119...

Function Details

highdetail_func(self, msg, *args, **kwargs)

Log 'msg % args' with severity 'HIGHDETAIL'. To pass exception information, use the keyword argument exc_info with a true value, e.g. logger.debug("Houston, we have a %s", "thorny problem", exc_info=1)

verbose_func(self, msg, *args, **kwargs)

Log 'msg % args' with severity 'VERBOSE'. To pass exception information, use the keyword argument exc_info with a true value, e.g. logger.debug("Houston, we have a %s", "thorny problem", exc_info=1)

Variable Details

AGService

Type:
str
Value:
'AGService'                                                            

AppDb

Type:
str
Value:
'AppDb'                                                                

AppMonitor

Type:
str
Value:
'AppMonitor'                                                           

AsyncService

Type:
str
Value:
'AsyncService'                                                         

AuthorizationUI

Type:
str
Value:
'AuthorizationUI'                                                      

BridgeServer

Type:
str
Value:
'BridgeServer'                                                         

CertificateManager

Type:
str
Value:
'CertificateManager'                                                   

CertificateManagerWXGUI

Type:
str
Value:
'CertificateManagerWXGUI'                                              

CertificateRepository

Type:
str
Value:
'CertificateRepository'                                                

CertificateRequestTool

Type:
str
Value:
'CertificateRequestTool'                                               

CertReqService

Type:
str
Value:
'CertReqService'                                                       

CRITICAL

Type:
int
Value:
50                                                                    

CRSClient

Type:
str
Value:
'CRSClient'                                                            

DataService

Type:
str
Value:
'DataService'                                                          

DataStore

Type:
str
Value:
'DataStore'                                                            

DataStoreClient

Type:
str
Value:
'DataStoreClient'                                                      

defaultLoggers

Type:
list
Value:
['Hosting',
 'Toolkit',
 'Types',
 'ProcessManager',
 'Utilities',
 'VenueClient',
 'ProxyGen',
 'CertificateRepository',
...                                                                    

defLogHandler

Type:
FileHandler
Value:
<logging.FileHandler instance at 0x01119968>                           

defStreamHandler

Type:
StreamHandler
Value:
<logging.StreamHandler instance at 0x01119698>                         

ERROR

Type:
int
Value:
40                                                                    

EventClient

Type:
str
Value:
'EventClient'                                                          

EventService

Type:
str
Value:
'EventService'                                                         

fn

Type:
str
Value:
'c:\\docume~1\\turam\\locals~1\\temp\\tmpqm-ebj.aglog'                 

HIGHDETAIL

Type:
int
Value:
3                                                                     

HIGHEST_LEVEL

Type:
int
Value:
3                                                                     

Hosting

Type:
str
Value:
'Hosting'                                                              

INFO

Type:
int
Value:
20                                                                    

Logging

Type:
str
Value:
'Logging'                                                              

memLevels

Type:
LoggerLevels
Value:
<AccessGrid.Log.LoggerLevels instance at 0x01119EE0>                   

mlh

Type:
MemoryHandler
Value:
<logging.handlers.MemoryHandler instance at 0x01119EB8>                

NodeManagementUIClasses

Type:
str
Value:
'NodeManagementUIClasses'                                              

NodeService

Type:
str
Value:
'NodeService'                                                          

NodeSetupWizard

Type:
str
Value:
'NodeSetupWizard'                                                      

NOTSET

Type:
int
Value:
0                                                                     

Platform

Type:
str
Value:
'Platform'                                                             

ProcessManager

Type:
str
Value:
'ProcessManager'                                                       

pyGlobus

Type:
str
Value:
'pyGlobus'                                                             

Security

Type:
str
Value:
'Security'                                                             

ServiceManager

Type:
str
Value:
'ServiceManager'                                                       

SharedApplication

Type:
str
Value:
'SharedApplication'                                                    

SimpleTextProcessor

Type:
str
Value:
'SimpleTextProcessor'                                                  

TextClient

Type:
str
Value:
'TextClient'                                                           

TextConnection

Type:
str
Value:
'TextConnection'                                                       

TextService

Type:
str
Value:
'TextService'                                                          

Toolkit

Type:
str
Value:
'Toolkit'                                                              

Types

Type:
str
Value:
'Types'                                                                

UIUtilities

Type:
str
Value:
'UIUtilities'                                                          

Usage

Type:
str
Value:
'Usage'                                                                

Utilities

Type:
str
Value:
'Utilities'                                                            

VenueClient

Type:
str
Value:
'VenueClient'                                                          

VenueClientController

Type:
str
Value:
'VenueClientController'                                                

VenueClientUI

Type:
str
Value:
'VenueClientUI'                                                        

VenueClientUIClasses

Type:
str
Value:
'VenueClientUIClasses'                                                 

VenueManagement

Type:
str
Value:
'VenueManagement'                                                      

VenueServer

Type:
str
Value:
'VenueServer'                                                          

VERBOSE

Type:
int
Value:
7                                                                     

WARN

Type:
int
Value:
30                                                                    

_componentNames

Type:
list
Value:
[]                                                                     

_defaultFormatter

Type:
Formatter
Value:
<logging.Formatter instance at 0x0115B418>                             

_defaultLevels

Type:
dict
Value:
{'EventClient': 10,
 'EventService': 10,
 'NodeManagementUIClasses': 30,
 'ProxyGen': 10,
 'TextService': 10,
 'VenueClient': 10,
 'VenueClientUI': 30}                                                  

_loggerLevels

Type:
dict
Value:
{<logging.handlers.MemoryHandler instance at 0x01119EB8>: <AccessGrid.\
Log.LoggerLevels instance at 0x01119EE0>,
 <logging.StreamHandler instance at 0x0360AAD0>: <AccessGrid.Log.Logge\
rLevels instance at 0x01E25C60>}                                       

_loggers

Type:
list
Value:
[<logging.Logger instance at 0x01119F08>,
 <logging.Logger instance at 0x01119F08>,
 <logging.Logger instance at 0x0117E350>,
 <logging.Logger instance at 0x0117E350>,
 <logging.Logger instance at 0x0114DC10>,
 <logging.Logger instance at 0x0114DC10>,
 <logging.Logger instance at 0x0117E350>,
 <logging.Logger instance at 0x01198DA0>,
...                                                                    

_lowDetailFormatter

Type:
Formatter
Value:
<logging.Formatter instance at 0x01119328>                             

_usageFormatter

Type:
Formatter
Value:
<logging.Formatter instance at 0x01119490>                             

Generated by Epydoc 2.1 on Thu Apr 14 16:39:26 2005 http://epydoc.sf.net