Board logo

标题: WebSphere Application Server 日志记录开发人员指南(2) [打印本页]

作者: look_w    时间: 2018-8-13 21:16     标题: WebSphere Application Server 日志记录开发人员指南(2)

选择正确的日志和跟踪 API最常见的日志记录 API 有哪些?
有多个日志记录 API 选项可以在 WebSphere Application Server 应用程序中使用。最常见候选选项如表 1 中所示。
表 1. 日志记录 API日志记录 API是否与 WebSphere Application Server 日志集成是否建议在 WebSphere Application Server 应用程序中使用java.util.logging (JUL)是(从 V6.0 起)是(V6.0 或更高版本)JRAS是是(仅仅适用于 V6.0 之前的版本)Log4J否否Jakarta Commons Logging (JCL)是否System.out.println and System.err.println是否
应该将哪个日志记录 API 用于 WebSphere Application Server?
正如上面所述,有各种日志记录可供选择。以下是 WebSphere Application Server 服务能力团队针对应用程序代码的建议:





欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0