Class AccessLogHandler


  • public class AccessLogHandler
    extends FileHandler
    Log handler to support separation of access log to its own file.

    This is used with Java Logging. For other frameworks, such as slf4j or log4j you can use a bridge for Java Logging and configure a separate file using implementation specific configuration.

    Java util logging configuration example using this handler:

     # Configure the log handler (uses the same configuration options as FileHandler, ignores formatter
     io.helidon.webserver.accesslog.AccessLogHandler.level=FINEST
     io.helidon.webserver.accesslog.AccessLogHandler.pattern=access.log
     io.helidon.webserver.accesslog.AccessLogHandler.append=true
    
     # Configure the logger
     io.helidon.webserver.AccessLog.level=INFO
     io.helidon.webserver.AccessLog.useParentHandlers=false
     io.helidon.webserver.AccessLog.handlers=io.helidon.webserver.accesslog.AccessLogHandler