Difference between revisions of "0.22 Python bindings/MythLog"

From MythTV Official Wiki
Jump to: navigation, search
m
m (edit category)
Line 12: Line 12:
 
Adds log entry to MythTV using the specified log level tag.
 
Adds log entry to MythTV using the specified log level tag.
  
[[Category:Old Python Bindings]]
+
[[Category:0.22 Python Bindings]]

Revision as of 13:02, 20 July 2010

Adds access to logging functions of MythTV

MythLog(level, format, instance)

level - level of urgency at which to pass log message format - formatted string for printing log messages instance - name of module to print in log messages

MythError(message)

Generates error with message

MythLog(level, message, *args, **kwargs)

Adds log entry to MythTV using the specified log level tag.