0

I've been asking to edit a .jar lib removing all the Log. I extracted the .class files and from there with a tool i managed to get the .java files.

I guess all i need to do is create a new project in eclipse and copy the .java files, edit and the compile them in a new .jar.

But when i copy the files in eclipse it give me a lot of error due to the build path. If I compile the .java file with all these aerror the library will work? Errors

Syrinxos
  • 137
  • 1
  • 2
  • 8
  • 4
    Do not delete log statements from libraries. Use the logging configuration to switch off logging is the better alternative. – Jens Feb 03 '15 at 08:25
  • It depends on the type of logging (Log4j, commons-logging,...) is used. – Jens Feb 03 '15 at 08:28
  • This looks like it is android code? So read up about android logging. – greg-449 Feb 03 '15 at 08:37
  • Can i somehow disable the Log from a library in my code app? – Syrinxos Feb 03 '15 at 08:42
  • yes you can.Is there a log boolean being used?Then use Reflection API and toggle the boolean to disable Logging. – Droidekas Feb 03 '15 at 08:43
  • Try to figure out what logging framework is being used using the decompiled classes. Once you've found it, read the doc of this framework or come back here to ask for help. – StephaneM Feb 03 '15 at 10:13
  • you can find any logger properties file in that code.there you can change the properties. – madhu Feb 03 '15 at 11:48

0 Answers0