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

Add custom logger #142

Open
sdex opened this issue Jan 22, 2023 · 0 comments
Open

Add custom logger #142

sdex opened this issue Jan 22, 2023 · 0 comments

Comments

@sdex
Copy link

sdex commented Jan 22, 2023

I'd like to have the ability to set a custom logger. Something like:

public interface Logger {
    void log(int level, String tag, String msg, Exception exp);
}

Shell.enableVerboseLogging = true;
Shell.logger = new Logger() {}

I can implement it and make a pull request, LMK if it's something you are willing to accept.

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

No branches or pull requests

1 participant