Skip to content
This repository has been archived by the owner on May 2, 2021. It is now read-only.

Commit

Permalink
comma-separated CSV, rather than semicolon-sep.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjanson committed Mar 10, 2015
1 parent 1223496 commit 260d3b5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/src/main/assets/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOG_DIR}/${LOG_FILE}.csv</file>
<encoder>
<pattern>%date{ISO8601};%msg%n</pattern>
<pattern>%date{yyyy-mm-dd HH:mm:ss.SSS},%msg%n</pattern>
</encoder>

<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ public void run() {
private void log(ScanResult wifi) {
if (m.logToFile) {
m.diskLog.info(m.currentLocation.getLatitude()
+ ";" + m.currentLocation.getLongitude()
+ ";" + m.currentLocation.getAltitude()
+ ";" + m.currentLocation.getAccuracy()
+ ";" + m.lastLocationUpdateTime.getTime()
+ ";" + wifi.SSID
+ ";" + wifi.BSSID
+ ";" + wifi.level
+ ";" + m.lastWifiScanTime.getTime());
+ "," + m.currentLocation.getLongitude()
+ "," + m.currentLocation.getAltitude()
+ "," + m.currentLocation.getAccuracy()
+ "," + m.lastLocationUpdateTime.getTime()
+ "," + wifi.SSID // TODO: escape commas
+ "," + wifi.BSSID
+ "," + wifi.level
+ "," + m.lastWifiScanTime.getTime());
}
}

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<resources>
<string name="app_name">WifiLocationLogger</string>
<string name="app_name">Wifi Location Logger</string>

<string name="unknown">—</string>
<string name="logging_start">Start logging</string>
Expand Down

0 comments on commit 260d3b5

Please sign in to comment.