title: Log function call on new line in Java and C#
body: <p>I have a logging function in CSharp and Java that I use in walking the stack. How do I make each log print to a new line only. Below are my Java and CSharp Functions.</p>
  
  <pre><code> public static void LogFunctionCall(String parameters){
  
          Object trace =  Thread.currentThread().getStackTrace()[3];
          android.util.Log.i("@@@@@@@@@@@@@@@@@@" + trace.toString()+ "", parameters );
      }
  </code></pre>
  
  <p>the java version is this </p>
  
  <pre><code> public static void LogFunctionCall(string parameters,
         [System.Runtime.CompilerServices.CallerMemberName] string methodName = "",
         [System.Runtime.CompilerServices.CallerFilePath] string sourceFilePath = "",
         [System.Runtime.CompilerServices.CallerLineNumber] int sourceLineNumber = 0)
          {
              var stackFrame = new StackFrame(1);
              var callerMethod = stackFrame.GetMethod();
              var className = callerMethod.DeclaringType;
              System.Diagnostics.Trace.WriteLine("CCCCCCCCCCCCCCCC" + " " + className + " " + methodName + " " + sourceLineNumber + " " + parameters + "\n");
          }
  </code></pre>
  
  <p>I code on a windows machine.
  Please where exactly do I need to place the new line character. I tried this </p>
  
  <pre><code> public static void LogFunctionCall(String parameters){
  
          Object trace =  Thread.currentThread().getStackTrace()[3];
          android.util.Log.i("@@@@@@@@@@@@@@@@@@" + trace.toString()+ "", parameters + "\n" );
      }
  </code></pre>
  
  <p>but I still saw some of the logs being clumped up on a single line. </p>