Can we achieve logging for AEM servlet methods?
Like we can log different results and entry points for OSGi services & components Can we achieve the same for servlets?
I know putting it simply in the doGet/doPost method won't work. Any suggestions?
Code:
private final Logger logger = LoggerFactory.getLogger(this.getClass());
...
@9944223
protected void doGet(final SlingHttpServletRequest req,
final SlingHttpServletResponse resp) throws ServletException, IOException {
...
logger.debug(...);
}
