WebApplication webApplication = (WebApplication)Application.get();
final IRequestLogger requestLogger;
if (webApplication.getRequestLogger() == null)
{
// make default one.
requestLogger = new DummyRequestLogger();
}
else
{
requestLogger = webApplication.getRequestLogger();
}