Skip to main content

Qt Custom UI Log for Maya/Houdini

Project description

QtLog

Custom Python Log with colored message display for Maya/Houdini/Nuke

PySide2/Python3 - Maya +2022, Houdini +19, Nuke +13

Message Levels

    log = get_stream_logger('my_log')

    log.info('test info')  # white
    log.warning('test warning')  # orange
    log.error('test error')  # red
    log.critical('test critical')  # purple
    log.debug('test debug')  # yellow
    log.ok('test ok')  # sky blue
    log.file('test file')  # super light blue
    log.process('test process')  # light blue
    log.done('test done')  # green
    log.hint('hint to the user')  # yellow

Example APP ScreenShot

Usage

    # imports
    from qtlog.stream_log import get_stream_logger
    from qtlog.qt_ui_logger import QtUILogger

    # get loggers
    log = get_stream_logger('MyToolLog')
    log_ext = get_stream_logger('ExternalLog')

    # create the log widget
    self.loggers = QtUILogger(parent=self, layout_widget=self.ui.log_layout, loggers=[log, log_ext])

    # sent messages are displayed in color on the ui widget and maya
    log.hint('Message')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qt-log-1.0.1.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

qt_log-1.0.1-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page