loghandler.rst 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. .. This is a autogemerated documentation from python docstrings. It was generated using DStrings2Doc.
  2. .. module:: loghandler
  3. .. _loghandler:
  4. Module loghandler
  5. =================
  6. .. py:class:: LogHandler(logging.Handler)
  7. Handler Class to configure Logging
  8. This also enables logging to the output field in the gui
  9. .. py:method:: __init__(self, log_area)
  10. .. py:method:: emit(self, record)
  11. Emit a log record
  12. .. py:class:: Highlighter(QtGui.QSyntaxHighlighter)
  13. Highlighter for the logging area
  14. .. py:method:: __init__(self, parent, theme)
  15. .. py:method:: setKeywords(self, kw)
  16. Set the keywords to check for
  17. :param kw: the keywords
  18. .. py:method:: highlightBlock(self, text)
  19. Highlight a block of text
  20. :param text: the text to check in
  21. .. py:class:: LogArea(QtGui.QTextEdit)
  22. The log area for the KCG Gui
  23. .. py:method:: __init__(self)
  24. .. py:method:: init_logging(self)
  25. Initialize logging
  26. .. py:method:: append(self, record)
  27. Append to the logarea
  28. :param record: the record to append
  29. .. py:method:: setKeywords(self, kw)
  30. Set the keywords for the highlighter
  31. :param kw: the keywords to set