smart logger window
-
hi all! i need to develop application that have many simultaneously ran tasks. each task have its own logger file and prints log info in to some window control. i've tried to investigate how to log this data to UI window but found out nothing. i need some multiline listbox or textbox that can contain a lot of strings and be fast like VS output window(text box) or microsoft spy(listbox). i think that containing of all log lines in UI window is not a good idea... may be it would be better to write all log data only to log file and in to UI window print lines depending on scroll-bar position reading them from log-file? what do u think about this? may be u had the same problem and can recommend me better solution? 10x!
ISQ 469907496
-
hi all! i need to develop application that have many simultaneously ran tasks. each task have its own logger file and prints log info in to some window control. i've tried to investigate how to log this data to UI window but found out nothing. i need some multiline listbox or textbox that can contain a lot of strings and be fast like VS output window(text box) or microsoft spy(listbox). i think that containing of all log lines in UI window is not a good idea... may be it would be better to write all log data only to log file and in to UI window print lines depending on scroll-bar position reading them from log-file? what do u think about this? may be u had the same problem and can recommend me better solution? 10x!
ISQ 469907496
Hi, most of the time I log to both a file (which during debug gets opened and closed for each line, so I also catch the last line before a crash) and a listbox. IMO a TextBox is terrible for logging, since it continuously concatenates all text lines, a quadratic and expensive operation you do not need. :)
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
-
Hi, most of the time I log to both a file (which during debug gets opened and closed for each line, so I also catch the last line before a crash) and a listbox. IMO a TextBox is terrible for logging, since it continuously concatenates all text lines, a quadratic and expensive operation you do not need. :)
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
thx!
ISQ 469907496
-
Hi, most of the time I log to both a file (which during debug gets opened and closed for each line, so I also catch the last line before a crash) and a listbox. IMO a TextBox is terrible for logging, since it continuously concatenates all text lines, a quadratic and expensive operation you do not need. :)
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
Luc Pattyn wrote:
IMO a TextBox is terrible for logging, since it continuously concatenates all text lines, a quadratic and expensive operation you do not need.
Interesting, never thought of that bottleneck right there, going to make me review a couple of times a textbox is present for debugging :)