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

FlatSVGIcon uses logSevere for recoverable errors #823

Closed
jamescooper-gd opened this issue Mar 18, 2024 · 2 comments
Closed

FlatSVGIcon uses logSevere for recoverable errors #823

jamescooper-gd opened this issue Mar 18, 2024 · 2 comments
Milestone

Comments

@jamescooper-gd
Copy link

The FlatSVGIcon uses a general logger, so it's not currently possible to disable a log message we don't want without disabling all log messages.

I'm dynamically loading icons, and if the svg document is invalid I get "severe" errors in the log, that are completely recoverable in my app.

Any chance this could log to a customer logger, for instance by FlatSVGIcon.class please?

DevCharly added a commit that referenced this issue Mar 24, 2024
@DevCharly
Copy link
Collaborator

I've changed used log level from severe to config and added method FlatSVGIcon.setLoggingEnabled( boolean ) to allow disabling logging for FlatSVGIcon

implemented in latest 3.4.1-SNAPSHOT: https://github.com/JFormDesigner/FlatLaf#snapshots

@DevCharly DevCharly added this to the 3.4.1 milestone Mar 24, 2024
@jamescooper-gd
Copy link
Author

Thanks, I appreciate the fix.

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

2 participants