MCPcopy Create free account
hub / github.com/PCGen/pcgen / reportSource

Method reportSource

code/src/java/pcgen/util/Logging.java:280–294  ·  view source on GitHub ↗

Report where an issue was encountered. @param context the LoadContext containing the resource

(final Level lvl, final LoadContext context)

Source from the content-addressed store, hash-verified

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.

Callers 2

renameObjectMethod · 0.95
newBonusMethod · 0.95

Calls 4

getLoggerMethod · 0.95
isLoggableMethod · 0.80
getSourceURIMethod · 0.65
logMethod · 0.45

Tested by

no test coverage detected