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)
| 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. |
no test coverage detected