Cannot stop log file still saving

Ahmad Bassel4 years ago

I noticed today that Traccar still saving log files even I mentioned on default.xml to stop logger:

    <entry key='logger.enable'>false</entry>

The problem our server log become so big and actually we don't need a log as we cannot view it because each file about 2GB.

Any solution for it and why it is like this?

Slawek4 years ago

did you restart service after changes ?

Slawek4 years ago

I did check in my system is same, swich to false not disable log file.

try this

<entry key='logger.level'>warning</entry>

then log file is disable

This must be bug

traccar v 4.12

Ahmad Bassel4 years ago

Thank you for your reply

I did restart the service of course i am not new to programming and computer.

I will try your advice and thank you very much.

Anton Tananaev4 years ago

You can disable it by changing level. I think none is the right value for that.

Ahmad Bassel4 years ago

Thank you all for reply to me

I tried

<entry key='logger.enable'>false</entry>
<entry key='logger.level'>warning</entry>

and it still logging on server but much better than before with much less space consumsion

<entry key='logger.enable'>false</entry>
<entry key='logger.level'>none</entry>

and the service did not start at all

Just updating you.

Thank alot again

Anton Tananaev4 years ago

Try severe level.

Ahmad Bassel4 years ago

sure i will give it a try

Slawek4 years ago

try

    <entry key='logger.enable'>false</entry>
    <entry key='logger.level'>off</entry>
Ahmad Bassel4 years ago

Both working and service started:

<entry key='logger.enable'>false</entry>
<entry key='logger.level'>severe</entry>

<entry key='logger.enable'>false</entry>
<entry key='logger.level'>off</entry>

But the [off] is maybe eliminate all log from creation.

I will keep it running for some time to test it.

Thank you all for your help.

Slawek4 years ago

ALL
ALL indicates that all messages should be logged.

CONFIG
CONFIG is a message level for static configuration messages.

FINE
FINE is a message level providing tracing information.

FINER
FINER indicates a fairly detailed tracing message.

FINEST
FINEST indicates a highly detailed tracing message.

INFO
INFO is a message level for informational messages.

OFF
OFF is a special level that can be used to turn off logging.

SEVERE
SEVERE is a message level indicating a serious failure.

WARNING
WARNING is a message level indicating a potential problem.

Ahmad Bassel4 years ago

thank you for your clarification

it is very helpful