Exscript.util.report module

Formatting logs into human readable reports.

Exscript.util.report.format(logger, show_successful=True, show_errors=True, show_traceback=True)[source]

Prints a report of the actions that were logged by the given Logger. The report contains a list of successful actions, as well as the full error message on failed actions.

Parameters:logger (Logger) – The logger that recorded what happened in the queue.
Return type:string
Returns:A string summarizing the status of every performed task.
Exscript.util.report.status(logger)[source]

Creates a one-line summary on the actions that were logged by the given Logger.

Parameters:logger (Logger) – The logger that recorded what happened in the queue.
Return type:string
Returns:A string summarizing the status.
Exscript.util.report.summarize(logger)[source]

Creates a short summary on the actions that were logged by the given Logger.

Parameters:logger (Logger) – The logger that recorded what happened in the queue.
Return type:string
Returns:A string summarizing the status of every performed task.