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