On Thu, Sep 28, 2017, 12:45 AM Sebastian Schoellhammer < [email protected]> wrote:
> Hi! > > Has anybody tried to create a custom logger handler? > > I wanted to make on that outputs to a qt widget but I can't even get my > emit function to be called :/ > > Here's my code: > https://pastebin.com/TV7Cf0fw > > If anybody sees something obvious, please let me know! > Your example never sets the widget for the log handler. Additionally you never default self.loggingWidget=None in your __init__() so I would expect your handler to crash when it goes to emit and hits an undefined field. > Thanks!! > > seb > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/CAMLepcZUUWmA%2B_wMb5TEgvPCJis%2BkCn%2BhfWTP2cZ78ou9CVb_w%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAMLepcZUUWmA%2B_wMb5TEgvPCJis%2BkCn%2BhfWTP2cZ78ou9CVb_w%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2CY787GOLAH-ewu1LbJm%3DcQwDjDmcsYxEP4rtBeWYdYw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
