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

Commit

Permalink
removed SocketAppender (oops, forgot)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjanson committed Mar 15, 2015
1 parent 009ab4a commit 75d53d8
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions app/src/main/assets/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
<configuration debug="true">
<property name="LOG_DIR" value="/sdcard/WifiLocationLogger" />
<property name="LOG_FILE" value="wifilog" />
<property name="HOST" value="87.106.17.125" /><!-- niobe.tomjanson.com -->
<property name="PORT" value="34567" />
<property name="INCLUDECALLERDATA" value="true" />

<appender name="LOGCAT" class="ch.qos.logback.classic.android.LogcatAppender" >
<tagEncoder>
Expand Down Expand Up @@ -48,23 +45,6 @@
</rollingPolicy>
</appender>

<appender name="SOCKET" class="ch.qos.logback.classic.net.SocketAppender">
<!-- Async + lazy + IP instead of FQDN to avoid NetworkOnMainThreadExc., see
https://github.com/tony19/logback-android/wiki/Appender-Notes#socketappender-syslogappender
-->

<!-- lazy initialization: don't open socket until 1st write -->
<lazy>true</lazy>

<remoteHost>${HOST}</remoteHost>
<port>${PORT}</port>
<reconnectionDelay>10 seconds</reconnectionDelay>
<includeCallerData>${INCLUDECALLERDATA}</includeCallerData>
</appender>
<appender name="ASYNC" class="ch.qos.logback.classic.AsyncAppender">
<appender-ref ref="SOCKET" />
</appender>

<!-- additivity="false" ensures these messages are not also logged in root -->
<logger name="data" additivity="false" >
<!--appender-ref ref="LOGCAT" /-->
Expand All @@ -74,10 +54,6 @@
<appender-ref ref="FILE" />
</logger>

<logger name="remote" level="INFO" additivity="false" >
<appender-ref ref="ASYNC" />
</logger>

<root level="TRACE" >
<appender-ref ref="LOGCAT" />
<appender-ref ref="FILE_DEBUG" />
Expand Down

0 comments on commit 75d53d8

Please sign in to comment.