Home
Sign Up
Sign In
V2EX
›
问与答
为什么 Java 的日志系统如此别扭——为什么不提供接受参数为 (Exception,String,Object...) 的日志方法?
Newyorkcity
·
May 7, 2021
· 1279 views
This topic created in 1930 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
1
Jooooooooo
May 7, 2021
1
有异常的语法是这样的
LOGGER.error("failed to delete {}.", file, ex);
2
Ariver
May 7, 2021
你可以自己实现一个。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
5550 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 24ms ·
UTC 07:04
·
PVG 15:04
·
LAX 00:04
·
JFK 03:04
♥ Do have faith in what you're doing.
❯