def METHOD_NAME(self, message):
    if self.hasCasaLog():
        self.setCasaOrigin()
        casaStuff.casalog.post(message, 'DEBUGGING')
        self.restoreCasaOrigin()
    else:
        super(PipelineLogger, self).METHOD_NAME(message)