Code Monkey home page Code Monkey logo

Comments (1)

MisterChangRay avatar MisterChangRay commented on July 28, 2024

e.printStackTrace() 只能输出到控制台,没法通过日志门面向各个日志框架写到日志文件中。我感觉 lombok 可以不引入,slf4j 的的引入并不会造成太大的影响,而且 slf4j 属于日志门面,适配各个日志框架,灵活性要更高一些,引入之后也不会对项目造成影响。而且,一般做项目大多数都是搭配日志框架输出的,很少直接用控制台输出的,这样定位问题也不方便。

多谢老哥,之前直接输出的在V2.2.1中直接抛出了。
然后很多异常属于解析阶段异常,只能在调试阶段抛出。
可以在下个版本中引入slf4j,确实可以通过日志做一些警告提示。

from magic-byte.

Related Issues (20)

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.