• Visit Rebornbuddy
  • Stable build, can we have a 'disable all logging'

    Discussion in 'Archives' started by WhereIsMyMind, Oct 22, 2014.

    1. WhereIsMyMind

      WhereIsMyMind Member

      Joined:
      Oct 12, 2013
      Messages:
      848
      Likes Received:
      5
      Trophy Points:
      18
      Hi PushEDX,

      As per subject. I can understand this being not allowed with the BETA but for stable?
      I think it helps having as few writes to the HDD (yes, i should get another SDD) as possible.

      WIMM
       
    2. pushedx

      pushedx Moderator Moderator Buddy Core Dev

      Joined:
      Sep 24, 2013
      Messages:
      4,252
      Likes Received:
      290
      Trophy Points:
      83
      If you'd like to disable all logging you can execute the following code (Dev Tab/Routine/Plugin)

      Code:
      Logger.ChangeLogFilterLevel(Level.Off, Level.Off);
      
      You will need to reference the following to access the Level enum:
      Code:
      using log4net.Core;
      
      To re-enable default logging, you can execute the following code:
      Code:
      Logger.ChangeLogFilterLevel(Level.All, Level.Emergency);
      
       

    Share This Page