[logback-user] logback and proguard

Omer Azriel amramaz at gmail.com
Tue Feb 26 12:12:16 CET 2013


2013/2/26 Omer Azriel <amramaz at gmail.com>

> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20130226/1f6d673f/attachment.html>


More information about the Logback-user mailing list