[
https://jira.jboss.org/jira/browse/WBRI-214?page=com.atlassian.jira.plugi...
]
Takeshi Kondo updated WBRI-214:
-------------------------------
Attachment: logger_prototype.patch
I've created type-safe logging api prototype.
My idea is using enum as message definition .
for instance
--
// message sample
public enum LogMessage {
@Error("error level")
TEST0001,
@Warn("error level")
TEST0002,
}
---
// logger sample
static Log log = LogManager.getLogger(TypeLogTest.class);
public void testLog() {
log.log(LogMessage.TEST0001);
}
Separate log message and log level from module.
-----------------------------------------------
Key: WBRI-214
URL:
https://jira.jboss.org/jira/browse/WBRI-214
Project: Web Beans
Issue Type: Feature Request
Reporter: Takeshi Kondo
Attachments: logger_prototype.patch
Under development , log message is used to dubug the program
So log message internationalization will be broaden the webbeans user base.
And it make easy to document log message.
Under operation, maybe only in Japan, Log message is used to trigger alert.
so I frequently change log level to prevent alert at the last minute operation.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira