What configuration file are you using?
hi,
I use the debug.xml file which points to a main.xml file that I created. here is the content of debug
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
<properties>
<entry key='config.default'>./main/main.xml</entry>
<entry key='web.path'>./traccar-web/web</entry>
<entry key='web.debug'>true</entry>
<entry key='web.console'>true</entry>
<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.type'>ban</entry>
<entry key='logger.console'>false</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='database.driver'>org.h2.Driver</entry>
<entry key='database.url'>jdbc:h2:./target/database</entry>
<entry key='database.user'>sa</entry>
<entry key='database.password'></entry>
<entry key='atrack.custom'>true</entry>
</properties>
here is the content of main.xml :
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
<properties>
<entry key='web.enable'>true</entry>
...
<entry key='portman.port'>5211</entry>
</properties>
I normally deploy the application. my problem is with the log file. I would like traccar to write to a log file and not to the netbeans apache console.
thanjs
It should work, as far as I can tell. If it still logs into console, it probably means that you are not using that config file.
hi,
I managed to get it written to the log file. now I would like to deploy the database on postgresql and understand user account management (CRUD) on Traccar.
thanks
I managed to clone and deploy the traccar source code in netbeans. I compiled it and access the Traccar web interface. my concern is that it does not create the tracker-server.log file for me while I have created the logs folder at the root. the options below are well activated.
<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>
what to do for Traccar automatically creates this log file for me?
thanks