Comments (5)
因为用到了枚举型注解,怕你们设置过滤器传参错误,前一个条件是没用哈
from alog.
@Blankj setLogFilter这个设置对所有TAG有效,我说的是每个TAG分别设置日志级别,
比如slf4j-simple的配置文件可以这样,
org.slf4j.simpleLogger.defaultLogLevel=debug
org.slf4j.simpleLogger.log.IndexFragment=info
org.slf4j.simpleLogger.log.Listener=debug
org.slf4j.simpleLogger.log.LoginActivity=trace
from alog.
@Blankj 我意思是既然只有一个方法用到那个注解,不如直接在方法里判断一下,
不过用注解也有个好处,传错了IDE可以实时提醒,
确实我并没有考虑到用户使用ALog常量成员以外的情况,
from alog.
该库以精简为主,当然想做到的话在要测试的地方把Builder中的参数改了,测完再恢复回去也可以马马虎虎实现你的需求,你的这个需求应该也不是很大,所以就不追求那么复杂了
from alog.
虽说是一个方法,但设置那个过滤器怕传的参数有误,所以还是用了注解型枚举,相比直接用枚举要好
from alog.
Related Issues (15)
- 有丢失log的情况,我使用的时候法案,有的方法里面的代码执行了,但是log并没有打印 HOT 2
- 可否加入一个类似log4j的保存几天日志的支持? HOT 2
- 去掉final呗 HOT 1
- stackOffset不应该是全局的吧 HOT 1
- 可以提供个是否加密的配置项 HOT 1
- AndroidX支持
- 是否可以支持日志按类别输出到不同文件 HOT 2
- 我心爱的打印库啊,为何停止维护 HOT 1
- logcat打印出来的函数名或者类名并无点击特性 HOT 2
- 当ALog.json()在部分手机上无法显示 , 好像是因为某些手机不支持debug类型信息的打印 HOT 1
- android 7.0 日志打印不出来,华为畅享7 HOT 4
- setLogHeadSwitch(false)时报错 HOT 1
- 建议:希望能做到logger一样和timber无缝对接 HOT 1
- 想请问下支持android studio的是怎么实现的 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alog.