Redirecting Debug.Log output.

I’d like to direct my Debug.Log messages to a file, so that I can send that back to home base in case of a crash. I was wrapping the function in my own, but this makes it go to the wrong place in the editor when you doubleclick the message in the console.

Is there some way I could redirect the output of this function at runtime, that works across all platforms?

I’ve no experience with it but:

http://unity3d.com/support/documentation/ScriptReference/Application.RegisterLogCallback.html

looks like JUST the thing you are looking for.

It’ll allow you to catch the Debug Logs for special functionality.

3 Likes

That is exactly what I need. Thanks!

1 Like
4 Likes