It is more convenient for an application to log messages to the Web container (by use of ServletContext.log()).