class documentation
class OFMHandler(logging.Handler): (source)
Constructor: OFMHandler(level, max_logs)
A logging.Handler that stores the most recent logs for access by the server.
| Method | __init__ |
Initialise the handler with a set logging level and message buffer size. |
| Method | append |
Format message and append it to a list of records. |
| Method | emit |
Emit will save the logged record to the log. |
| Property | log |
Return the log history up to the maximum number of logs. |
| Instance Variable | _log |
Undocumented |
| Instance Variable | _max |
Undocumented |
Initialise the handler with a set logging level and message buffer size.
| Parameters | |
| level | The level of logs captured. As standard logs of INFO and above are captured. |
| max | The maximum number of logs to hold in memory. This sets how many can be returned over HTTP. |