Alessandro71 Well-Known Member Licensed User Longtime User Apr 15, 2021 #1 Is there a cross-platform way to capture Log() statements so they can be redirected to a text log file?
Is there a cross-platform way to capture Log() statements so they can be redirected to a text log file?
William Lancee Well-Known Member Licensed User Longtime User Apr 15, 2021 #2 An easy way I have used is to replace all Log() statements with myLog() and then do what you need to do in myLog() Upvote 0
An easy way I have used is to replace all Log() statements with myLog() and then do what you need to do in myLog()
Alessandro71 Well-Known Member Licensed User Longtime User Apr 16, 2021 #3 William Lancee said: An easy way I have used is to replace all Log() statements with myLog() and then do what you need to do in myLog() Click to expand... That's what I do also, but it's not ideal for sharing code with other projects that do not use custom logging: if the native Log() statement could be redefined, it would simply fallback to system logging Upvote 0
William Lancee said: An easy way I have used is to replace all Log() statements with myLog() and then do what you need to do in myLog() Click to expand... That's what I do also, but it's not ideal for sharing code with other projects that do not use custom logging: if the native Log() statement could be redefined, it would simply fallback to system logging