Log Issue

Lee White 3 years ago

Hi Everyone, I just noticed that our traccar log is not working. How do I get it to keep a log?

Track-trace 3 years ago

Try stopping Traccar server. If you see the log tracker-server.log in /logs then delete it. After that start the server again it should create a new log and add logging for server startup. Does it do that ?

Lee White 3 years ago

There is no file in the log folder at all

Anton Tananaev 3 years ago

If there's no log, it probably means your server is not running. It could mean that the config file is invalid. Could also be some other reason.

Lee White 3 years ago

Can you tell me what should be in the config file so I can check it?

Anton Tananaev 3 years ago

Check the default one.

Lee White 3 years ago

I added this to my config file and still no log?

<entry key='logger.level'>info</entry>
    <entry key='logger.file'>./logs/tracker-server.log</entry>
    <entry key='logger. Rotate'>true</entry>