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

Method isLoggable

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

Check if the level of logs would be output for the caller. This can be used to prevent building logging output if it will not be used. @param level The logging level to be checked. @return true if the level would be output, false if not.

(Level level)

Source from the content-addressed store, hash-verified

144 * @return true if the level would be output, false if not.
145 */
146 public static boolean isLoggable(Level level)
147 {
148 Logger l = getLogger();
149 return l != null && l.isLoggable(level);
150 }
151
152 /**
153 * Print information message if PCGen is debugging.

Callers 15

CompoundAndChoiceSetMethod · 0.95
CompoundOrChoiceSetMethod · 0.95
CompoundAndPrimitiveMethod · 0.95
CompoundOrPrimitiveMethod · 0.95
validateNamesMethod · 0.95
getSpellLevelInfoMethod · 0.95
applyKitMethod · 0.95
DescriptionMethod · 0.95
displayListsHappyMethod · 0.95
processJepFormulaMethod · 0.95
writeCustomItemsMethod · 0.95

Calls 1

getLoggerMethod · 0.95

Tested by

no test coverage detected