Hi, Is it possible to have smtp or jdbc logging appenders configured for cq logging? I've done some research on what is available for osgi logging and there seems to be PAX from ops4f ( but it probably won't run smooth with sling logging sitting in the same environment and i guess it is not advisable to swap the entire logging system completely) . What would be good approach to implement something that will provide similar functionality to log4j appenders with runtime configuration?
Currently Sling's SLF4J implementation currently supports writing to files & does not have option for appenders you are looking. However enhancement request placed at https://issues.apache.org/jira/browse/SLING-2024
The approach would be to implement LogListener (Per osgi spec http://www.osgi.org/javadoc/r2/org/osgi/service/log/package-summary.html)
* Create a class implementing LogListener
* Register your LogListener with all the logging service available on the server.
Note:- Messaged logged with LogService only get sent to your LogListeners + SLF4J.