Package qupath.lib.common
Class LogTools
java.lang.Object
qupath.lib.common.LogTools
Helper class for logging.
- Since:
- v0.4.0
- Author:
- Pete Bankhead
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Log a message once at the INFO level.static boolean
Log a message once at the specified level.static boolean
Log a message once at the WARN level.
-
Constructor Details
-
LogTools
public LogTools()
-
-
Method Details
-
logOnce
Log a message once at the specified level.This is intended primarily to give a way to warn the user if methods are deprecated, but avoid emitting large numbers of identical messages if the method is called many times.
- Parameters:
logger
-level
-message
-- Returns:
- true if the message was logged, false otherwise (i.e. it has already been logged)
-
logOnce
Log a message once at the INFO level.This is intended primarily to give a way to notify the user if methods are deprecated, but avoid emitting large numbers of identical messages if the method is called many times.
- Parameters:
logger
-message
-- Returns:
- true if the message was logged, false otherwise (i.e. it has already been logged)
-
warnOnce
Log a message once at the WARN level.This is intended primarily to give a way to warn the user if methods are deprecated, but avoid emitting large numbers of identical messages if the method is called many times.
- Parameters:
logger
-message
-- Returns:
- true if the message was logged, false otherwise (i.e. it has already been logged)
-