diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-07-30 20:42:02 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-07-30 20:42:02 +1200 |
commit | 110c49504f87c025423c923500bd52ea4615b33b (patch) | |
tree | 2398fd3fa3286b35b6f80cad51b59703d3065b6e /setup | |
parent | 5f75f109dfc1140d2f644857d877baf88cb1fe83 (diff) | |
download | trackermap-server-110c49504f87c025423c923500bd52ea4615b33b.tar.gz trackermap-server-110c49504f87c025423c923500bd52ea4615b33b.tar.bz2 trackermap-server-110c49504f87c025423c923500bd52ea4615b33b.zip |
Improve logging system (fix #278)
Diffstat (limited to 'setup')
-rwxr-xr-x | setup/package.sh | 3 | ||||
-rw-r--r-- | setup/windows/traccar.iss | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/setup/package.sh b/setup/package.sh index c79c5d710..8d3c87fc0 100755 --- a/setup/package.sh +++ b/setup/package.sh @@ -107,6 +107,7 @@ sed -i 's/<YourMainClass>/org.traccar.Main/g' out/conf/wrapper.conf sed -i 's/@app.name@/traccar/g' out/conf/wrapper.conf sed -i 's/@app.long.name@/traccar/g' out/conf/wrapper.conf sed -i 's/@app.description@/traccar/g' out/conf/wrapper.conf +sed -i 's/wrapper.logfile=..\/logs\/wrapper.log/wrapper.logfile=..\/logs\/wrapper.log.YYYYMMDD\nwrapper.logfile.rollmode=DATE/g' out/conf/wrapper.conf # linux 32 @@ -152,7 +153,7 @@ makeself out traccar.run "traccar" "mkdir -p $app; cp -rf * $app; $app/bin/tracc zip -j traccar-macosx-64.zip traccar.run macosx/README.txt rm traccar.run -rm -rf out +#rm -rf out # GENERAL CLEANUP diff --git a/setup/windows/traccar.iss b/setup/windows/traccar.iss index bd69352db..262a8e51e 100644 --- a/setup/windows/traccar.iss +++ b/setup/windows/traccar.iss @@ -56,6 +56,7 @@ begin StringChangeEx(S, '@app.name@', 'Traccar', true);
StringChangeEx(S, '@app.long.name@', 'Traccar', true);
StringChangeEx(S, '@app.description@', 'Traccar', true);
+ StringChangeEx(S, 'wrapper.logfile=../logs/wrapper.log', 'wrapper.logfile=../logs/wrapper.log.YYYYMMDD' + #13#10 + 'wrapper.logfile.rollmode=DATE', true);
SaveStringToFile(ExpandConstant(CurrentFileName), S, false);
end;
|