StackTrace / MethodBase trouble. Debugging on Multiple Platforms

What approaches have you taken to log system errors that include the class name, method name, and line number that compiles for multiple platforms in Unity3D?

I have used StackTrace in order to get the class name, method name, and line number for the purpose of logging errors. That object gave me trouble when I tried to build anything other than a standalone app. Next, I decided to use MethodBase. I see I’m also running into trouble when building for multiple platforms. I’m running out of ideas.

Thanks for your help.

I chose this method for now…

catch(System.Exception ex)
{
UnityEngine.Debug.LogError(ex.Message + “\n” + ex.Source);
}