wxLog examples

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
vouk
Earned a small fee
Earned a small fee
Posts: 18
Joined: Fri Feb 15, 2019 7:34 am

wxLog examples

Post by vouk » Sat Apr 13, 2019 3:02 pm

I'd like to know if anybody knows some good example code on how to work with wxLog, esp. with wxLogBuffer.

My goal is to write log entries to some string buffer that i can access later on. In fact i would like to view/copy this buffer in a text control when i open the gui again. But when I call getBuffer() it is almost empty.

Thank you.

PB
Part Of The Furniture
Part Of The Furniture
Posts: 2020
Joined: Sun Jan 03, 2010 5:45 pm

Re: wxLog examples

Post by PB » Sat Apr 13, 2019 4:25 pm

What exactly is the issue, can you not do something like the code linked below, except to store the log entries e.g. in a std::vector<wxString> instead of writing to a file?
viewtopic.php?t=42551#p172677

Post Reply