Code Monkey home page Code Monkey logo

Comments (5)

Blankj avatar Blankj commented on August 23, 2024

因为用到了枚举型注解,怕你们设置过滤器传参错误,前一个条件是没用哈

from alog.

AoEiuV020 avatar AoEiuV020 commented on August 23, 2024

@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.

AoEiuV020 avatar AoEiuV020 commented on August 23, 2024

@Blankj 我意思是既然只有一个方法用到那个注解,不如直接在方法里判断一下,
不过用注解也有个好处,传错了IDE可以实时提醒,
确实我并没有考虑到用户使用ALog常量成员以外的情况,

from alog.

Blankj avatar Blankj commented on August 23, 2024

该库以精简为主,当然想做到的话在要测试的地方把Builder中的参数改了,测完再恢复回去也可以马马虎虎实现你的需求,你的这个需求应该也不是很大,所以就不追求那么复杂了

from alog.

Blankj avatar Blankj commented on August 23, 2024

虽说是一个方法,但设置那个过滤器怕传的参数有误,所以还是用了注解型枚举,相比直接用枚举要好

from alog.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.