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

Custom Logger #183

Open
RobertoArtiles opened this issue Oct 12, 2014 · 6 comments
Open

Custom Logger #183

RobertoArtiles opened this issue Oct 12, 2014 · 6 comments

Comments

@RobertoArtiles
Copy link

Hi Sam and other contributors,
Great job. Keep it up!

I have a feature suggestion. Would be nice to be able to provide a log listener and a log level. It's useful in cases when you want to collect and send logs to the server, and you use for this a custom logger. So it can be something like this:

Glide.get(this)
    .setLogLevel(FULL)
    .setLogListener(new LogListener() {
        @Override
        public void log(String message) {
        }
}

Or maybe something more precise:

public void log(LogLevel level, String message)
@sjudd
Copy link
Collaborator

sjudd commented Oct 12, 2014

Totally agree, I'd like more control over logging myself. I'd love to see a pull request for for something like this.

@szaboa
Copy link

szaboa commented Jul 25, 2018

@sjudd This is still needs to be done? Does the glide has already logs inside the lib? It just needs to be wired up to top level?

@sjudd
Copy link
Collaborator

sjudd commented Aug 9, 2018

Glide has Android Logs, some of which are really only useful for debugging. We have some ways for developers to control the verbosity of those logs, but not a lot outside of adb. We don't have any API that would let people intercept logs the way this proposal would.

@dant3
Copy link

dant3 commented Oct 23, 2018

Would love to raise this again. I had multiple complaints from users about logs pollution from my application, which are coming from Glide

@sjudd
Copy link
Collaborator

sjudd commented Oct 24, 2018

@dant3 You can control the verbosity of logs in different builds: http://bumptech.github.io/glide/doc/configuration.html#log-level

@dant3
Copy link

dant3 commented Oct 24, 2018

@sjudd while this should help with this noize in logcat, It can make some errors harder to trace. I would like to have ability to redirect information to my own logging facilities, to have more control over it as I'm doing logging into file, to aid in troubleshooting users issues.

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

No branches or pull requests

4 participants