Commit 4748451
committed
Add robust log level handling in JVSGLoggerLogManager
The JVSGLoggerLogManager allows to customize the log level with a system
property. When an invalid log level is passed, the call currently throws
an exception and makes the whole rasterizer initialization fail, leading
to the non-availability of an SVG rasterizer throughout the whole
application lifecycle.
This change makes the system property processing more robust: when an
invalid level is used, an error is printed and the implementation falls
back to using "ERROR" as default log level. In addition, capitalization
is ignored by always making the passed value upper case. As a result of
this change, it not be possible to make the rasterizer implementation
fail with an invalid system property anymore.1 parent c1fd7a0 commit 4748451
1 file changed
Lines changed: 11 additions & 1 deletion
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
21 | 31 | | |
22 | 32 | | |
23 | 33 | | |
| |||
0 commit comments