Package lib.util
Class Logging
java.lang.Object
lib.util.Logging
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic voidLog a string with a cooldown to not flood the RioLog™.static <T> TLog values with a cooldown to not flood the RioLog™.static voidlogWithDelay(String key, double delaySeconds) Log a string with a cooldown to not flood the RioLog™.static <T> TlogWithDelay(String key, double delaySeconds, T value, Object... others) Log values with a cooldown to not flood the RioLog™.
-
Method Details
-
cooldown
- Returns:
- True if at least
delaySecondsseconds have passed since this function was last called with the samekey.
-
log
Log a string with a cooldown to not flood the RioLog™.- Parameters:
key- String to log; also used to determine the time since the last message with the same key was sent
-
logWithDelay
Log a string with a cooldown to not flood the RioLog™.- Parameters:
key- String to log; also used to determine the time since the last message with the same key was sentdelaySeconds- Minimum cooldown between logs
-
log
Log values with a cooldown to not flood the RioLog™. Formatted as 'key: value' or 'key: val1, val2, ...'- Parameters:
key- Key that is used to determine the time since the last message with the same key was sentvalue- Value to logothers- Additional values to log- Returns:
- The first value (for chaining)
-
logWithDelay
Log values with a cooldown to not flood the RioLog™. Formatted as 'key: value' or 'key: val1, val2, ...'- Parameters:
key- Key that is used to determine the time since the last message with the same key was sentdelaySeconds- Minimum cooldown between logsvalue- Value to logothers- Additional values to log- Returns:
- The first value (for chaining)
-