Here's how current Lombok logging works:
@Slf4j
public class LogExampleOther {
public static void main(String... args) {
log.error("Something else is wrong here");
}
}
The logger variable is always called log and I see no way to set a custom variable name. What if I want to assign custom logger variable name, like LOGGER. as in:
@Slf4j(loggerName="LOGGER")
public class LogExampleOther {
public static void main(String... args) {
LOGGER.error("Something else is wrong here");
}
}
Is that possible?