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
User avatar
vouk
Knows some wx things
Knows some wx things
Posts: 25
Joined: Fri Feb 15, 2019 7:34 am
Location: Germany
Contact:

wxLog examples

Post by vouk »

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: 4193
Joined: Sun Jan 03, 2010 5:45 pm

Re: wxLog examples

Post by PB »

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