Log-file unrecognised option

Hallo,
I want to save the log to a file and set the option log-file = /var/log/leaps-server.log on my RPI. After restart the docker container leaps-server this doesn’t come up and restarts itself every minute with the log “unrecognised option ‘log-file’” under the docker logs of the container. Home direction doesn’t work either.
I use the UDK with one anchor as gateway on a RPI5 with the leaps-rpi-image-2025-06-17-15-10.img.
If I set the log equal to leaps-gateway the container starts normal but there is no logging in the file. Logging level is set to DEBUG/ 4.

What do I have to write in the config file to get the log?

Hi Daniel
You can set the option using the following configuration:
log = /var/log/leaps-server.log
We have updated it.
Kind regards,
BXT

Hello,

thanks for your help. Now leaps server starts but there is nothing writen in the log file. I tried with server, center and gateway and nothing writes anything in the log files.
In all configs I set to logging level debug an the path to a file in /var/log/leaps-… .log

What do I have to change/ add?

#Gateway
# Logging level, default is 3 (0=none, 1=error, 2=warning, 3=info, 4=debug, 5=verbose).
log-level = 4

# Path to log file. Comment out to disable logging to file (log to stdio instead).
log-file = /var/log/leaps-gateway.log

----------------------------
#server
# Logging level, default is 4 (0=none, 1=fatal, 2=error, 3=warning, 4=info, 5=debug, 6=verbose).
log_level = 5

# Path to log file. Comment out to disable logging to file (log to stdio instead).
log = /var/log/leaps-server.log

-----------------------------------------
#center
#default WINDOWNS("user.home"/leaps-center-log/leaps-center-web.log), UNIX(/var/log/leaps-center-web.log)
logging.file.name=/var/log/leaps-center-web.log

# level log TRACE < DEBUG < INFO < WARN < ERROR < OFF, default is OFF
logging.level.root=DEBUG

spring.main.banner-mode=DEBUG 

logging.level.global.leaps.center.mqtt=DEBUG 
logging.level.global.leaps.center.init=DEBUG 
logging.level.global.leaps.center.service=DEBUG 
logging.level.global.leaps.center.history.filter=OFF
logging.level.global.leaps.center.history.service=OFF
logging.level.global.leaps.center.history=OFF
logging.level.global.leaps.center.web.component=OFF
logging.level.global.leaps.center.web.rest=OFF
logging.level.global.leaps.center.web.sse=OFF
logging.level.global.leaps.center.web=DEBUG
logging.level.global.leaps.center=DEBUG 

Hello @Daniel
we will be releasing soon a newer version of docker containers where the naming will be aligned.

Regarding your question to the logging to host RPI /var/log)

It is needed to realize that the Docker containers are lightweights virtual images and they contain a sandboxed Linux environments. So when you point the log to the /var/log/ it actually point to the /var/log/ inside of the sandboxed environment.

If you have used the leaps_docker_run_all.sh script for setting up the Docker images
then the leaps-server have the internal /app/data folder mounted to …\LEAPS-DOCKER-LINUX-v1.1.0\leaps_server_hub\data\
then if you want to have log file you need to enable it inside of the leaps-server.conf file :
log = /app/data/leaps-server.log

then it should appear inside of the
…\LEAPS-DOCKER-LINUX-v1.1.0\leaps_server_hub\data\

if you want to have inside of your Host RPi /var/log/ then you need to create a file inside of the /var/log/ and then symlinked it to …\LEAPS-DOCKER-LINUX-v1.1.0\leaps_server_hub\data\ leaps-server.log

I would recommend to keep the log file disabled and use following command:
docker logs leaps-server
it will show you the logs as it will be collected by the Docker itself.

Best regards
JK