SalLogHandler#

class lsst.ts.salobj.SalLogHandler(controller)#

Bases: Handler

Log handler that outputs an event topic.

Parameters:

controller (Controller) – Controller with Required Logger Attribute evt_logEvent.

Methods Summary

close()

Tidy up any resources used by the handler.

emit(record)

Do whatever it takes to actually log the specified logging record.

Methods Documentation

close()#

Tidy up any resources used by the handler.

This version removes the handler from an internal map of handlers, _handlers, which is used for handler lookup by name. Subclasses should ensure that this gets called from overridden close() methods.

Return type:

None

emit(record)#

Do whatever it takes to actually log the specified logging record.

This version is intended to be implemented by subclasses and so raises a NotImplementedError.

Parameters:

record (LogRecord)

Return type:

None