Migrate to SLF4J (#157)

This commit is contained in:
modmuss50 2022-01-19 22:54:09 +00:00 committed by GitHub
parent 4d8fff9ec6
commit 662a7f1b33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,14 +1,14 @@
package net.fabricmc.example;
import net.fabricmc.api.ModInitializer;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ExampleMod implements ModInitializer {
// This logger is used to write text to the console and the log file.
// It is considered best practice to use your mod id as the logger's name.
// That way, it's clear which mod wrote info, warnings, and errors.
public static final Logger LOGGER = LogManager.getLogger("modid");
public static final Logger LOGGER = LoggerFactory.getLogger("modid");
@Override
public void onInitialize() {