Logging facilities

staticDHCPd uses the native Python logging subsystem, so if you want to work with it, just tap into that.

It does, however, define custom logging handlers.

Classes

class logging_handlers.FIFOHandler(capacity)[source]

Bases: logging.Handler

Initialises the handler in a blank state.

Parameters:capacity (int) – The number of records the handler can hold.
flush()[source]

Discards all logged records.

readContents()[source]

Produces the current log.

Return list(str):
 The logged records, in human-readable form.