2013/2/26 Omer Azriel <[email protected]>

> hello,
> I use logback in my android application and it works great,
> However, when I export the application and obfuscate the code using
> Proguard, it does not work correctly (I'm using FileAppder, and the file is
> not created).
>
> this is my config file:
> <configuration>
>     <appender
>         name="userClicksAppender"
>         class="ch.qos.logback.core.FileAppender" >
>         <file>
>  /sdcard/Test/data/log.txt
>         </file>
>         <append>
>  true
>         </append>
>         <encoder class="com.android.gooapplication.model.MyEncoder" >
>             <pattern>
> %-4relative [%thread] %-5level %logger{35} - %msg%n
>             </pattern>
>         </encoder>
>     </appender>
>     <logger name="userClicksLogger" >
>         <appender-ref ref="userClicksAppender" />
>     </logger>
> </configuration>
>
> I tried to skip the class MyEncoder and the whole packages of logback in
> the proguard config file as follows:
> -keep public class com.android.gooapplication.model.MyEncoder
> -keep public class ch.qos.logback.**
> -keep public public class org.slf4j.**
>
> but still with no success.
>
> what do you think?
> Many thanks,
> Omer.
>
_______________________________________________
Logback-user mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-user

Reply via email to