android loggin

关于android 日志:

在web开发中我们用到的日起记录 通常用log4j ,在android 平台下 他已经为我们实现好了日志的记录 ,logcat 下可以看到 ,可是有些时候 我们要把他保存成文件放入sdcard 怎么办呢

 android.util.logging 有很多类 如logger filehhander等,根据这些 我们可以改自己的日志实现!

 

Fields
public static final Level ALL The ALL level provides all logging messages.
public static final Level CONFIG The CONFIG level provides static configuration messages.
public static final Level FINE The FINE level provides tracing messages.
public static final Level FINER The FINER level provides more detailed tracing messages.
public static final Level FINEST The FINEST level provides highly detailed tracing messages.
public static final Level INFO The INFO level provides informative messages.
public static final Level OFF The OFF level provides no logging messages.
public static final Level SEVERE The SEVERE level provides severe failure messages.
public static final Level WARNING

The WARNING level provides warnings.

 

你可能感兴趣的:(android,log4j,Web)