mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-22 20:26:50 +00:00
Update CIYAM-AT to v1.3.6 to make use of lambda-based logging
This commit is contained in:
@@ -691,6 +691,11 @@ public final class QortalAtLogger extends ExtendedLoggerWrapper implements org.c
|
||||
logger.logIfEnabled(FQCN, ERROR, null, msgSupplier, (Throwable) null);
|
||||
}
|
||||
|
||||
/** Java 8 version */
|
||||
public void error(final java.util.function.Supplier<String> msgSupplier) {
|
||||
logger.logIfEnabled(FQCN, ERROR, null, () -> msgSupplier.get(), (Throwable) null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Logs a message (only to be constructed if the logging level is the {@code ERROR}
|
||||
* level) including the stack trace of the {@link Throwable} <code>t</code> passed as parameter.
|
||||
@@ -1375,6 +1380,11 @@ public final class QortalAtLogger extends ExtendedLoggerWrapper implements org.c
|
||||
logger.logIfEnabled(FQCN, DEBUG, null, msgSupplier, (Throwable) null);
|
||||
}
|
||||
|
||||
/** Java 8 version */
|
||||
public void debug(final java.util.function.Supplier<String> msgSupplier) {
|
||||
logger.logIfEnabled(FQCN, DEBUG, null, () -> msgSupplier.get(), (Throwable) null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Logs a message (only to be constructed if the logging level is the {@code DEBUG}
|
||||
* level) including the stack trace of the {@link Throwable} <code>t</code> passed as parameter.
|
||||
@@ -2059,6 +2069,11 @@ public final class QortalAtLogger extends ExtendedLoggerWrapper implements org.c
|
||||
logger.logIfEnabled(FQCN, ECHO, null, msgSupplier, (Throwable) null);
|
||||
}
|
||||
|
||||
/** Java 8 version */
|
||||
public void echo(final java.util.function.Supplier<String> msgSupplier) {
|
||||
logger.logIfEnabled(FQCN, ECHO, null, () -> msgSupplier.get(), (Throwable) null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Logs a message (only to be constructed if the logging level is the {@code ECHO}
|
||||
* level) including the stack trace of the {@link Throwable} <code>t</code> passed as parameter.
|
||||
|
Reference in New Issue
Block a user