[ 
https://issues.apache.org/jira/browse/CAMEL-22946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Federico Mariani updated CAMEL-22946:
-------------------------------------
    Summary: camel-spring-boot - make it easier to write application access 
logs without management access logs  (was: camel-spring-boot - make it easier 
to retrieve application access logs without management access logs)

> camel-spring-boot - make it easier to write application access logs without 
> management access logs
> --------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-22946
>                 URL: https://issues.apache.org/jira/browse/CAMEL-22946
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-spring-boot
>            Reporter: Federico Mariani
>            Assignee: Federico Mariani
>            Priority: Major
>
> Some user only needs application context access log. They don't need 
> management context access log.
> *Requirements:*
> * _management.server.port_ must be different from main app port
> * Without separate port, both contexts share the same server and access log 
> settings
> *Tomcat Management Access Log Control*
> *application.properties*:
> {code}
> # Enable access logs for main application
> server.tomcat.accesslog.enabled=true
> server.tomcat.accesslog.directory=logs
> server.tomcat.basedir=./target
> # Separate management port (required)
> management.server.port=9090
> # Disable access logs for management/actuator only
> management.server.accesslog.enabled=false
> {code}
> *Result*:
> * Main app (port 8080): Access logs written to access_log.<date>.log
> * Actuator (port 9090): No access logs
> *Undertow Management Access Log Control*
> *application.properties*:
> {code}
> # Enable access logs for main application
> server.undertow.accesslog.enabled=true
> server.undertow.accesslog.dir=logs
> # Separate management port (required)
> management.server.port=9090
> # Disable access logs for management/actuator only
> management.server.accesslog.enabled=false
> {code}
> *Result*:
> * Main app (port 8080): Access logs written to access_log.log
> * Actuator (port 9090): No access logs
> *Jetty Management Access Log Control*
> *application.properties*:
> {code}
> server.jetty.accesslog.enabled=true
> server.jetty.accesslog.filename=./target/logs/jetty_access.log
> # Use separate port for management/actuator endpoints
> management.server.port=9090
> # Disable access logs for management context only
> management.server.accesslog.enabled=false
> {code}
> *Result*:
> * Main app (port 8080): Access logs written to ./target/logs/jetty_access.log
> * Actuator (port 9090): No access logs



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to