Home
Sign Up
Sign In
V2EX
›
问与答
为什么 Java 的日志系统如此别扭——为什么不提供接受参数为 (Exception,String,Object...) 的日志方法?
Newyorkcity
·
May 7, 2021
· 1448 views
This topic created in 2007 days ago, the information mentioned may be changed or developed.
`LOGGER.error("failed to delete {}.", file);` 这是支持的。
那为什么不支持
`LOGGER.error(ex,"failed to delete {}.", file);`呢?
RoR
failed
file
delete
2 replies
•
2021-05-07 17:31:28 +08:00
Jooooooooo
May 7, 2021
1
1
有异常的语法是这样的
LOGGER.error("failed to delete {}.", file, ex);
Ariver
May 7, 2021
2
你可以自己实现一个。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
2894 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 25ms ·
UTC 12:40
·
PVG 20:40
·
LAX 04:40
·
JFK 07:40
♥ Do have faith in what you're doing.
❯