Package flumotion :: Package common :: Module log :: Class Loggable
[show private | hide private]
[frames | no frames]

Class Loggable

Known Subclasses:
BaseAdminText, BaseComponent, BaseMedium, BouncerPortal, BundleLoader, ComponentRegistry, ConfigEntryComponent, CryptChecker, Effect, FlexibleCredentialsChecker, FlumotionConfigXML, FPBClientFactory, JobAvatar, JobHeaven, Kindergarten, ManagerAvatar, ManagerHeaven, Packager, ServerContextFactory, Vishnu, WorkerBrain, WorkerConfigXML, _BouncerWrapper, Dispatcher, FeederSet, RegistryParser

Base class for objects that want to be able to log messages with different level of severity. The levels are, in order from least to most: log, debug, info, warning, error.
Method Summary
  debug(self, *args)
Log a debug message.
  error(self, *args)
Log an error.
  info(self, *args)
Log an informational message.
  log(self, *args)
Log a log message.
  logFunction(self, message)
Overridable log function.
  logObjectName(self)
Overridable object name function.
  warning(self, *args)
Log a warning.
  warningFailure(self, failure)
Log a warning about a Failure.

Class Variable Summary
str logCategory: Implementors can provide a category to log their messages under.

Method Details

debug(self, *args)

Log a debug message. Used for debugging.

error(self, *args)

Log an error. By default this will also raise an exception.

info(self, *args)

Log an informational message. Used for normal operation.

log(self, *args)

Log a log message. Used for debugging recurring events.

logFunction(self, message)

Overridable log function. Default just returns passed message.

logObjectName(self)

Overridable object name function.

warning(self, *args)

Log a warning. Used for non-fatal problems.

warningFailure(self, failure)

Log a warning about a Failure. Useful as an errback handler: d.addErrback(self.warningFailure)

Class Variable Details

logCategory

Implementors can provide a category to log their messages under.
Type:
str
Value:
'default'                                                              

Generated by Epydoc 2.1 on Tue Dec 20 15:33:10 2005 http://epydoc.sf.net