forked from ChomeNS/chipmunkmod
Migrate to SLF4J (#157)
This commit is contained in:
parent
4d8fff9ec6
commit
662a7f1b33
1 changed files with 3 additions and 3 deletions
|
@ -1,14 +1,14 @@
|
||||||
package net.fabricmc.example;
|
package net.fabricmc.example;
|
||||||
|
|
||||||
import net.fabricmc.api.ModInitializer;
|
import net.fabricmc.api.ModInitializer;
|
||||||
import org.apache.logging.log4j.LogManager;
|
import org.slf4j.Logger;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
public class ExampleMod implements ModInitializer {
|
public class ExampleMod implements ModInitializer {
|
||||||
// This logger is used to write text to the console and the log file.
|
// 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.
|
// 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.
|
// 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
|
@Override
|
||||||
public void onInitialize() {
|
public void onInitialize() {
|
||||||
|
|
Loading…
Reference in a new issue