Hi I am using following traccar.xml
<entry key='logger.enable'>true</entry>
<entry key='logger.level'>info</entry>
<entry key='logger.file'>./logs/tracker-server.log</entry>
<entry key='logger.rotate'>true</entry>
<entry key='logger.console'>true</entry>
I am running the service in docker container. When I check /opt/traccar/logs
directory in the container, it is empty.
When I check docker logs, it does print the console logs.
I understand the container's documentation requires the container volume to be defined like this
--volume /opt/traccar/logs:/opt/traccar/logs:rw \
which I tried but there is still no log file being saved
Any suggestions would be apppreciated
Is the server running fine? And you're just missing logs?
Hi Anton. Thank you so much for great job with the product.
and yes the server is running just fine. Everything seems working but just missing log files.
Its even printing to the docker logs.
We are running this in ecs service and its printing to the cloudwatch logs as well.
Oh wait.. that's correct. If you set "logger.console", it will only print into the console.
Hi I am using following traccar.xml
<entry key='logger.enable'>true</entry> <entry key='logger.level'>info</entry> <entry key='logger.file'>./logs/tracker-server.log</entry> <entry key='logger.rotate'>true</entry> <entry key='logger.console'>true</entry>
I am running the service in docker container. When I check
/opt/traccar/logs
directory in the container, it is empty.When I check docker logs, it does print the console logs.
I understand the container's documentation requires the container volume to be defined like this
--volume /opt/traccar/logs:/opt/traccar/logs:rw \
which I tried but there is still no log file being savedAny suggestions would be apppreciated