Fix npe when trying to use logger
@@ -22,15 +22,14 @@ import java.util.stream.Stream;
public class ForgeHaxCoreTransformer implements ITransformationService {
@Getter
- static Logger logger = null;
-
- public ForgeHaxCoreTransformer() {
- logger = LoggerProvider.builder()
+ static Logger logger =
+ LoggerProvider.builder()
.contextClass(ForgeHaxCoreTransformer.class)
.label("core")
.build()
.getLogger();
+ public ForgeHaxCoreTransformer() {
logger.info("ForgeHaxCore initializing");
}
