Class AEDiagnosticsLogger

java.lang.Object
com.biglybt.core.util.AEDiagnosticsLogger

public class AEDiagnosticsLogger extends Object
  • Field Details

    • MAX_PENDING

      private static final int MAX_PENDING
      See Also:
    • name

      private final String name
    • default_max_size

      private int[] default_max_size
    • explicit_max_size

      private int explicit_max_size
    • debug_dir

      private final File debug_dir
    • timestamp_enable

      private boolean timestamp_enable
    • force

      private boolean force
    • first_file

      private boolean first_file
    • first_write

      private boolean first_write
    • current_writer

      private PrintWriter current_writer
    • pending

      private LinkedList<StringBuilder> pending
    • pending_size

      private int pending_size
    • direct_writes

      private boolean direct_writes
    • close_pws

      private static final boolean close_pws
      See Also:
    • start_date

      private static final String start_date
    • timezone_offset

      private static final long timezone_offset
  • Constructor Details

    • AEDiagnosticsLogger

      protected AEDiagnosticsLogger(File _debug_dir, String _name, int[] _max_size, boolean _direct_writes)
  • Method Details

    • setForced

      public void setForced(boolean _force)
    • isForced

      public boolean isForced()
    • getName

      protected String getName()
    • setMaxFileSize

      public void setMaxFileSize(int _max_size)
    • enableTimeStamp

      public void enableTimeStamp(boolean enable)
    • log

      public void log(Throwable e)
    • logAndOut

      public void logAndOut(String str)
    • logAndOut

      public void logAndOut(String str, boolean stderr)
    • logAndOut

      public void logAndOut(Throwable e)
    • getTimestamp

      public static String getTimestamp()
    • format

      private static void format(int num, char[] chars, int pos)
    • log

      public void log(String _str)
    • write

      private void write(StringBuilder str)
    • writePending

      protected void writePending()
    • flush

      public void flush()
    • getLogFile

      public File getLogFile()
    • format

      private static String format(int n)