traccar 4.2 rename file tracker-server.log name

Pinakin Shobhana6 years ago

Greetings,

I have user traccar 4.2 it working fine for my digital ocean server but i want to some changes for log file name. i need a tracker-server.log to tracker-server.log.yyyymmdd
I don't know how to change traccar 4.2 but i know in traccar 3.9
Can you suggesion me so i will do that

I hope someone is able to provide help.

Thank you.

Ernesto Vallejo6 years ago

This is the file that you can handle to customize filename output
https://github.com/traccar/traccar/blob/master/src/org/traccar/helper/Log.java

Pinakin Shobhana6 years ago

Thank you so much dear

Pinakin Shobhana6 years ago

hello Ernesto,

if i have add default config to <entry key='logger.rotate'>true</entry> then daily log generate or not ?
for example : tracker-server.log.yyyymmdd this type of file generate daily

Pinakin Shobhana6 years ago

currantly i have use traccar 4.2 in this version logger.rotate option available or not ?

Ernesto Vallejo6 years ago

Your current version generates daily files out of the box. I think that key logger.rotate was deprecated somewhere on the road.