Hi TJ,<div><br></div><div>Had thought about this too.  However, the most reliable way of doing this is to bundle the mapping with the code, as we can deliver lots of different versions, including hotfixes, so doing offsite de-obfuscation will be unreliable as we'll have a hell of a time ensuring that we match the right stacktraces to the right mapping versions.</div>


<div><br></div><div>As I said, this is about checking out the feasibility and best approach to performing the mapping.  I'm well aware that this is not in any way an absolute way to protect code, just makes it a little harder for average curious people to stick their noses in.</div>


<div><br></div><div>So I'm aware of the limits and some alternatives, but I'd still be interesting in evaluating how this particular approach could be implemented.</div><div><br clear="all">--<br>Christopher</div>

<div><br>
<br><br><div class="gmail_quote">On 28 November 2011 17:56, TJ Rothwell <span dir="ltr"><<a href="mailto:tj.rothwell@gmail.com" target="_blank">tj.rothwell@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>Hi Chris,</div><div><br></div><div>Keep the log stacktraces obfuscated. Then create a process that de-obfuscates the stack traces for YGuard. I'm not familiar with YGuard, so there could be something like this already.</div>



<div><br></div><div>ProGuard (another obfuscation package) has this with ReTrace.</div><div><div><a href="http://proguard.sourceforge.net/index.html#/manual/retrace/introduction.html" target="_blank">http://proguard.sourceforge.net/index.html#/manual/retrace/introduction.html</a> </div>


<span><font color="#888888">
<br></font></span></div><span><font color="#888888"><div>-- TJ</div></font></span><div><div><div><br><div class="gmail_quote">On Mon, Nov 28, 2011 at 10:50 AM, Chris Pratt <span dir="ltr"><<a href="mailto:thechrispratt@gmail.com" target="_blank">thechrispratt@gmail.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p>You do realize that if you supply the mapping file to the end user, there is really no reason to obfuscale the code in the first place.  They'll have everything they need to properly un-obfuscate and decompile it.<br>





  (*Chris*)</p>
<div class="gmail_quote"><div><div>On Nov 28, 2011 7:32 AM, "Christopher BROWN" <<a href="mailto:brown@reflexe.fr" target="_blank">brown@reflexe.fr</a>> wrote:<br type="attribution"></div></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<div>Hello,</div><div><br></div><div>What would be the best way to handle logging with logback when deploying obfuscated code?</div><div><br></div><div>For example, with YGuard, when the obfuscator runs, it outputs a mapping file of obfuscated code (class names, method names, etc) to unobfuscated code.  When a stacktrace or just any logging trace is output, the class/method names are obviously obfuscated.  As it's possible to deploy this mapping with the code, say embedded in the same ".jar", all the information I would need is available.</div>






<div><br></div><div>Without too much re-writing of code (default formatting with logback), what would be the best way to dynamically replace matching class/method names?</div><br clear="all">Thanks,<br>Christopher<br>
<br></div></div>_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a><br></blockquote></div>
<br>_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a><br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a><br></blockquote></div><br></div>