Log printer for Android
compile 'cn.ymex:log.L:1.2.0'
L.i(TAG,"log message");
L.v("log message");
L.tag().logD(message,message2,message3);
L.tag(TAG).logW(Data.object());
L.e(Data.array());
...
public static String TAG = "cute.L";//default tag
L.d(tag,message);
you need set android studio color in:
File > Settings > Editor > Colors &Fonts -> Android Logcat
check off Use Inberited attributes, then check Foreground ,check Foreground,
click Foreground color selecter。
Demo color:
| Tag | Value |
|---|---|
| Verbose | #F9BDBB |
| Info | #B39DDB |
| Debug | #738FFE |
| warning | #EF6C00 |
| Error | #E00032 |
| Assert | #FF1696 |
setting Android studio Console font size。
Editor>Colors&Fonts>Console Font
L.setLOG(false);
you need extend Printer and implement the following method:
public abstract String logHeader();//log header
public abstract String logFooter();//log footer
public abstract String logContent(Object message);//log content
set L.setPrinter(new CustomerPrinter());。
L.setPrinter(new SimplePrinter());
- Base type
- Object type
- List type
- Map type
- Array type




