log files

Adrien3 years ago

what can be done so that Traccar writes in the log file "tracker-server.log"? despite the fact that I have enabled it in the configuration file, Traccar writes instead in the standard output of Netbeans. I am using version 4.12 of Traccar.

<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>

<properties>

    <entry key='config.default'>./conf/default.xml</entry>

    <entry key='web.path'>./traccar-web/web</entry>
    <entry key='web.address'>localhost</entry>
    <entry key='web.port'>8082</entry>
    <entry key='web.debug'>true</entry>
    <entry key='web.console'>true</entry>
    <entry key='web.timeout'>5</entry>
   
    <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='geocoder.enable'>true</entry>
    <entry key='geocoder.type'>google</entry>

    <entry key='status.timeout'>40</entry>
    
    <entry key='logger.console'>true</entry>

    <entry key='database.driver'>org.postgresql.Driver</entry>
    <entry key='database.url'>jdbc:postgresql://localhost:5432/xxxx</entry>
    <entry key='database.user'>postgres</entry>
    <entry key='database.password'>xxxxxx</entry>

    <!--<entry key='atrack.custom'>true</entry>
    <entry key='intellitrac.port'>6037</entry>
    <entry key='teltonika.address'>localhost</entry>
    -->
    <entry key='teltonika.port'>5027</entry>
    
</properties>

thanks

Anton Tananaev3 years ago

You have to set logger.console to false.

Sinaloense2 years ago

Is it possible to have logs by console and file at the same time?

Anton Tananaev2 years ago

Not possible without code changes.