[Soot-list] Silencing the logger
Marc-André Laverdière
marc-andre.laverdiere-papineau at polymtl.ca
Thu Aug 14 11:01:26 EDT 2014
Hallo Martin,
I personally redirect stdout to slf4j and mute most things as follows:
SysOutOverSLF4J.sendSystemOutAndErrToSLF4J()
LoggerFactory.getLogger("soot.PackManager").asInstanceOf[ch.qos.logback.classic.Logger].setLevel(Level.ERROR)
LoggerFactory.getLogger("soot.SootResolver").asInstanceOf[ch.qos.logback.classic.Logger].setLevel(Level.ERROR)
Obviously, you can choose which packages get a different level.
You can get that library from here:
http://projects.lidalia.org.uk/sysout-over-slf4j/
Marc-André Laverdière-Papineau
Doctorant - PhD Candidate
On 08/13/2014 07:31 PM, Martin Schäf wrote:
> Hi guys,
> I have a program that uses soot to transform bytecode. When I run the
> program, soot gives me quite a long command line output, e.g.:
>
> Soot started on Wed Aug 13 16:24:48 PDT 2014
> Warning: freemind.controller.actions.generated.instance.Pattern is a
> phantom class!
> ...
> Transforming freemind.view.mindmapview.attributeview.AttributeView$1...
> Transforming
> freemind.view.mindmapview.attributeview.AttributeViewScrollPane...
> Soot finished on Wed Aug 13 16:25:07 PDT 2014
> Soot has run for 0 min. 19 sec.
>
> This can be several hundreds of lines. Is there a way to tell Soot not
> to print this stuff?
>
> Many thanks,
> Martin
>
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at CS.McGill.CA
> https://mailman.CS.McGill.CA/mailman/listinfo/soot-list
>
More information about the Soot-list
mailing list