Report where an issue was encountered. @param context the LoadContext containing the resource
(final Level lvl, final LoadContext context)
| 278 | * @param context the LoadContext containing the resource |
| 279 | */ |
| 280 | public static void reportSource(final Level lvl, final LoadContext context) |
| 281 | { |
| 282 | Logger l = getLogger(); |
| 283 | if (l.isLoggable(lvl)) |
| 284 | { |
| 285 | if (context != null && context.getSourceURI() != null) |
| 286 | { |
| 287 | l.log(lvl, " (Source: " + context.getSourceURI() + " )"); |
| 288 | } |
| 289 | else |
| 290 | { |
| 291 | l.log(lvl, " (Source unknown)"); |
| 292 | } |
| 293 | } |
| 294 | } |
| 295 | |
| 296 | /** |
| 297 | * Report where an issue was encountered. |
no test coverage detected