Proxy services already support for per service logging configuration, which
means though the log4j.properties file it is possible to control logging
behavior per proxy services such as create separate log file per proxy,
define log category per proxy etc. But for the moment ESB APIs don't
support for per API logging configuration. Since there are some user
interest on this feature I looked into related code and realized this can
be supported easily, in fact I end up adding this support. Please find
details of this new feature below.
(1) Like SERVICE_LOGGER which is common for all (proxy) services there will
be a new logger called API_LOGGER which is common for all APIs and it will
persist log messages into wso2-esb-api.log file.
(2) It is possible to refer each API uniquely on log4j.properties file
using API_LOGGER.{API-Name} category.
e.g - log4j.category.API_LOGGER.*TestAPI*=DEBUG, TestAPI_ APPENDER
Thanks !
--
Sagara Gunathunga
Senior Technical Lead; WSO2, Inc.; http://wso2.com
V.P Apache Web Services; http://ws.apache.org/
Linkedin; http://www.linkedin.com/in/ssagara
Blog ; http://ssagara.blogspot.com
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture