[Soot-list] Suppress Soot warning from log
Steven Arzt
Steven.Arzt at cased.de
Mon Jun 8 05:45:28 EDT 2015
Hi Zheran,
Some components of Soot do not use the normal logging mechanism. There is
some ongoing work in changing the logging mechanism, e.g., see this pull
request: https://github.com/Sable/soot/pull/401. FlowDroid should already
use slf4j for all logging. If you find cases in which soot-infoflow or
soot-infoflow-android directly print out to the command-line instead of
going through slf4j, please feel free to open up a pull request to fix that
issue.
Best regards,
Steven
Von: soot-list-bounces at CS.McGill.CA [mailto:soot-list-bounces at CS.McGill.CA]
Im Auftrag von R.F.
Gesendet: Mittwoch, 3. Juni 2015 13:10
An: Bodden, Eric
Cc: soot-list at cs.mcgill.ca
Betreff: Re: [Soot-list] Suppress Soot warning from log
Hi, Eric,
Thanks for your answer. However, now every time I initialize Soot, I added
`G.v().out = new PrintStream(new File("/dev/null"));`, but some messages are
still outputted in the log. Did I do something wrong or miss something?
I also use soot-infoflow-android in my work, and I notice that classes such
as AnalyzeJimpleClass of soot-infoflow-android output directly via
System.out.
Moreover, after I set G.v().out, is error output redirected as well? I found
that I cannot access or modify G.v().err.
Thank you.
Best Regards,
Zheran Fang
On Wed, May 27, 2015 at 2:41 PM, Bodden, Eric
<eric.bodden at sit.fraunhofer.de> wrote:
Hi.
You can overwrite the output stream stored in G.v().out with one that prints
nothing.
Cheers,
Eric
> On 26.05.2015, at 18:15, R.F. <rayfang1991 at hotmail.com> wrote:
>
> Hi,
>
> When running Soot, it will print messages like "Warning: SOMECLASS is a
phantom class", "[Spark] ******" , etc, in the output log.
>
> Is there any option to prevent Soot from printing anything, including
infos or warnings in the output log?
>
> Thanks.
>
>
> Best Regards,
> R. F.
> _______________________________________________
> Soot-list mailing list
> Soot-list at CS.McGill.CA
> https://mailman.CS.McGill.CA/mailman/listinfo/soot-list
--
Prof. Eric Bodden, Ph.D., http://sse.ec-spride.de/ http://bodden.de/
Head of Secure Software Engineering at Fraunhofer SIT, TU Darmstadt and EC
SPRIDE
Tel: +49 6151 16-75422 <tel:%2B49%206151%2016-75422> Fax: +49 6151
869-127 <tel:%2B49%206151%20869-127>
Room B5.11, Fraunhofer SIT, Rheinstraße 75, 64295 Darmstadt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20150608/4864ea1a/attachment.html
More information about the Soot-list
mailing list