redRLog

redRLog

Handles the standard output and error and redirects it to the various output managers.

class redRLog.LogHandler[source]

Captures standard out and error and redirects to logging system.

Redirects the standard out and error to output writers. Also manages the default output writing to log files. Setting output log files and removing old log files.

__init__()[source]
clearOldLogs()[source]
closeLogFile()[source]
closeLogger()[source]
exceptionHandler(type, value, tracebackInfo)[source]
flush()[source]
moveLogFile(oldDir, newDir)[source]
openLogFile()[source]
showLogFile()[source]
write(text)[source]
writetoFile(table, logLevel, comment, html)[source]
redRLog.formatException(type=None, value=None, tracebackInfo=None, errorMsg=None, plainText=False)[source]

Format Exception for output.

redRLog.formatedLogOutput(table, logLevel, stack, comment, widget, html)[source]

Format Log entry for output.

redRLog.getSafeString(s)[source]

Escape log strings for HTML.

redRLog.log(table, logLevel=20, comment='', widget=None, html=True)[source]

Create a log entry.

redRLog.logOutput(table, logLevel, comment, html=False)[source]

Execute all log writers.

redRLog.logTrigger(table, logLevel)[source]

Execute log trigger with level > logLevel.

redRLog.removeOutputManager(name)[source]

Remove a log output manager

redRLog.setLogTrigger(name, manager, level)[source]

Create a trigger for a certain level. Given a log entry of some level, execute manager.

redRLog.setOutputManager(name, manager, level=None)[source]

Add log output manager

Previous topic

redRInitWizard

Next topic

redRObjects

This Page

  • Show Source