Directing log records to text control

5 views
Skip to first unread message

Ankur Patel

unread,
Sep 10, 2018, 3:39:52 AM9/10/18
to pocoo-libs
Hello Friends,

I have implemented NestedSetup with StreamHandler and TimedRotatingFileHandler  using Logbook which works fine. But with the application requirement, I also want to show the logging on the GUI under wx.TextCtrl instance. Is there any handler or some way I can achieve it?

Below is the snippet of working setup:
logging_setup = NestedSetup([
NullHandler(),
StreamHandler(
sys.stdout,
bubble=False,
level=loggingLevel
),
TimedRotatingFileHandler(
logPath,
level=0,
backup_count=3,
bubble=True,
date_format='%Y-%m-%d',
)
])



Kindly share if you need more info.

Regards,
Ankur
Reply all
Reply to author
Forward
0 new messages