Translate

lunes, 9 de febrero de 2015

WSO2: add log4j traces for your service

When you are using WSO2 application server to create your web services, you may want to log debug traces in your web services, but by default the log4j WSO2 configuration doesn't show this kind of debug traces.

In order to show this debug messages you only need to consider your webservice implementation package and add it to log4j WSO2 configuration.

Imagine that your application or webservice package is com.antuansoft.myapp you have to add this lines:

#MY APP DEBUG TRACES:
log4j.logger.com.antuansoft.myapp=DEBUG


at the end of the log4j.properties file that is situated in the next path:

[WSO2-Intallation-path]/repository/conf/log4j.properties

No hay comentarios:

Publicar un comentario