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

Missing a java.util.logging LogHandler #278

Closed
fbacchella opened this issue Jul 28, 2016 · 1 comment
Closed

Missing a java.util.logging LogHandler #278

fbacchella opened this issue Jul 28, 2016 · 1 comment

Comments

@fbacchella
Copy link

@fbacchella fbacchella commented Jul 28, 2016

It could be as simple as :

import java.util.logging.Level;
import java.util.logging.Logger;

public final static class JrdsLogHandler implements LogHandler {

    private static final Logger julilogger = Logger.getLogger(SomeClass.class.getCanonicalName());
    @Override
    public void debug(String message) {
        julilogger.fine(message);;
    }

    @Override
    public void info(String message) {
        julilogger.info(message);
    }

    @Override
    public void error(String message, Throwable t) {
        julilogger.log(Level.WARNING, message, t);
    }

};
@rhuss
Copy link
Owner

@rhuss rhuss commented Jul 28, 2016

Thanks ;-) Will add sth like this to the next release (as well as a 'QuietLogHandler' as a real class)

@rhuss rhuss closed this in bf6244e Jul 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.