Configure Log4Net to increase stack trace lines

Log4net only prints the 5 lines of the stack. How can i get all the calls in the hierarchy?

the conversion layout is

 <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="%date [%thread] %level %logger - %message%newline" />
      </layout>
 

logr.Fatal(e.ToString(),e);

2021-11-22 16:11:41,026 [UI thread 3] INFO NinjaTrader.NinjaScript.Strategies.EMA20Pullback - System.UnauthorizedAccessException: Access to the path 'C:\Program Files (x86)\NinjaTrader 8\bin64\EURUSDEMA20Pullback247278280.json' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append)
   at NinjaTrader.NinjaScript.Strategies.EMA20Pullback.write2fileJson(String str, String filename, Boolean append) in c:\Users\trading\Documents\NinjaTrader 8\bin\Custom\Strategies\EMA20Pullback.cs:line 2019
How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum