Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printing log messages should be configurable #270

Closed
koral-- opened this issue May 2, 2013 · 3 comments
Closed

Printing log messages should be configurable #270

koral-- opened this issue May 2, 2013 · 3 comments
Labels

Comments

@koral--
Copy link

koral-- commented May 2, 2013

Methods in com.nostra13.universalimageloader.utils.L print messages to Log unconditionally. It should be configurable eg. by ImageLoaderConfiguration.Builder#enableLogging() or other call in Builder or even some static method like L.enableLogCat(boolean logMessages).

In most cases log messages are only useful in DEBUG builds. One may may don't want to reveal stacktraces in RELEASE builds.

@lumisapps
Copy link

+1

2013/5/2 koral-- notifications@github.com

Methods in com.nostra13.universalimageloader.utils.L prints messages to
Log unconditionally. It should be configurable eg. by
ImageLoaderConfiguration.Builder#enableLogging() or other call in Builder
or even some static method like L.enableLogCat(boolean logMessages).

In most cases log messages are only useful in DEBUG builds. One may may
don't want to reveal stacktraces in RELEASE builds.


Reply to this email directly or view it on GitHubhttps://github.com//issues/270
.

@CsHeng
Copy link

CsHeng commented May 27, 2013

+1
...
plz
sth like ImageLoader.setDebug(false); also good.

nostra13 added a commit that referenced this issue Jun 28, 2013
  Added L.disableLogging() and .enableLogging() to completely on/off UIL's logs
@nostra13
Copy link
Owner

Added L.disableLogging() to completely off UIL's logs. And L.enableLogging() to enable logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants