Android Open Source - android-filelogger F Log Level






From Project

Back to project page android-filelogger.

License

The source code is released under:

Apache License

If you think the Android project android-filelogger listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.levelup.logutils;
//from  w ww .j  a v a  2s.  c o  m
import android.util.Log;

/**
 * the different levels of logging possible in {@link FLog}
 */
public enum FLogLevel {
  /**
   * Verbose log level
   */
  V(Log.VERBOSE),
  /**
   * Debug log level
   */
  D(Log.DEBUG),
  /**
   * Information log level
   */
  I(Log.INFO),
  /**
   * Warning log level
   */
  W(Log.WARN),
  /**
   * Error log level
   */
  E(Log.ERROR),
  /**
   * Assert log level
   */
  WTF(Log.ASSERT);
  
  final int logLevel;
  private FLogLevel(int logLevel) {
    this.logLevel = logLevel;
  }

  boolean allows(FLogLevel test) {
    return test.logLevel >= logLevel;
  }
}




Java Source Code List

com.levelup.logutils.FLogLevel.java
com.levelup.logutils.FLog.java
com.levelup.logutils.FLoggerTagged.java
com.levelup.logutils.FLoggerWrapTagged.java
com.levelup.logutils.FLogger.java
com.levelup.logutils.FileLogger.java
com.levelup.logutils.LogCollecting.java
com.levelup.logutils.LogCollectorEmail.java
com.levelup.logutils.sample.MainActivity.java