The method `shouldLog` in the `net.i2p.util.Log` class is a utility function in Java that determines whether logging should occur for a given log level and log category. It takes into account the current log level set for a category and compares it with the requested log level. If the requested log level is higher or equal to the current log level, then logging should occur and the method returns `true`. Otherwise, if the requested log level is lower than the current log level, the method returns `false`, indicating that logging should be skipped. This method is commonly used to optimize logging performance by avoiding unnecessary logging when the log level is set to a low priority.
Java Log.shouldLog - 30 examples found. These are the top rated real world Java examples of net.i2p.util.Log.shouldLog extracted from open source projects. You can rate examples to help us improve the quality of examples.