logging in interface methods
you can add logger to your interface manually, but your logger will be public:
public interface SomeInterface {
Logger log = LoggerFactory.getLogger(SomIface.class);
default void action() {
log.info("TEST");
}
}
Currently Lombok @Slf4j
annotation is not supported on interfaces,
but it can be circumvented like this
public interface MyInterface
{
@Slf4j
final class LogHolder
{}
default void action() {
LogHolder.log.error("Error TEST");
}
}