added at() as an alias for makeLoggingEventBuilder()

Signed-off-by: Ceki Gulcu <ceki@qos.ch>
This commit is contained in:
Ceki Gulcu 2021-12-16 00:56:42 +01:00
parent ce15e71dd8
commit c61f01783a
1 changed files with 11 additions and 0 deletions

View File

@ -113,6 +113,17 @@ public interface Logger {
}
}
/**
* An alias for {@link #makeLoggingEventBuilder}.
*
* @since 2.0
*/
default public LoggingEventBuilder at(Level level) {
return makeLoggingEventBuilder(level);
}
/**
* Returns whether this Logger is enabled for a given {@link Level}.
*