astefanutti commented on issue #2762:
URL: https://github.com/apache/camel-k/issues/2762#issuecomment-975306288


   > Where is the log file location in the integration pod?
   
   Generally, containers write to `stdout` or `stderr`. That is the case for 
integration Pods, that rely on the [Quarkus console log 
handler](https://quarkus.io/guides/logging#console-log-handler) by default.
   
   Then it depends on the container runtime that's setup for your cluster. With 
CRI-O, the log files are written in the `/var/log/pods` directory of the host 
node by default. It's `/var/lib/docker/containers` for the Docker container 
runtime. You can access this directory by accessing the node where the Pod is 
schedule, but it's also possible to mount the directory into a Pod.
   
   > How can I specify log file location If I want to log certain lines into a 
separated log file?
   
   You can configure the [Quarkus file log 
handler](https://quarkus.io/guides/logging#quarkus-log-logging-log-config_quarkus.log.file-file-logging),
 e.g.:
   
   ```
   $ kamel run -p quarkus.log.file.enable=true -p 
quarkus.log.file.path=/tmp/trace.log
   ```
   
   Some examples of Quarkus logging configuration are available at 
https://quarkus.io/guides/logging#examples.
   
    


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to