bobolounna / restfb

Automatically exported from code.google.com/p/restfb
0 stars 0 forks source link

Disable log messages #175

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I would like to disable the log messages but the logger is not accessible by 
the API.
So I did this workaround:

// disable logging for RestFB API 
final Filter disableLog = new Filter()
{
    @Override
    public boolean isLoggable(LogRecord record)
    {
        return false;
    }
};
                        Logger.getLogger(DefaultFacebookClient.class.getName()).setFilter(disableLog);      Logger.getLogger(DefaultWebRequestor.class.getName()).setFilter(disableLog);

But it is not a properly solution.
Thank Fabio

Original issue reported on code.google.com by latini....@gmail.com on 14 Mar 2012 at 9:46

GoogleCodeExporter commented 8 years ago
You can check out the code at github here: https://github.com/revetkn/restfb

I have made a fix so RestFB does not log at default logging levels - this will 
go into 1.6.10.  But you can pull down the latest - it's stable - and use that 
in the meantime :)

Closing this one out.

Original comment by m...@xmog.com on 17 Mar 2012 at 12:44

GoogleCodeExporter commented 8 years ago
Great!!! Everything works fine.
Cheers,
Fab

Original comment by latini....@gmail.com on 19 Mar 2012 at 3:51