tracker-server.log not found

St Iyke Ndubuisi5 years ago

Folks,
For some reason, I can't find any log files at opt/traccar/logs in my ubuntu machine in Digital Ocean.

Any ideas why and how to enable?

Thank you

Anton Tananaev5 years ago

Is the server running? Have you changed any configuration?

St Iyke Ndubuisi5 years ago

The server is running. I installed using the process outlined here on traccar.org for Digital Ocean installation.

Everything seems to be working fine. I was looking for the logs so I can identify the port for a new device we're integrating

Anders Yuran5 years ago

Is the logs setting true in the traccar.xml

St Iyke Ndubuisi5 years ago

Thanks Anders,
I do not have this setting in the traccar.xml file. But it is in the default.xml as follows:

    <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>

Is there a need to repeat in the traccar.xml?

St Iyke Ndubuisi5 years ago

Hi Anders and Anton,
I implemented above settings in traccar.xml and now I have the server logs ! Yay!

I'd thought you only needed to include in traccar.xml settings in default.xml that you wanted to override.

Many thanks!