The import org.apache.logging cannot be resolved #132

Closed
opened 2021-09-25 21:13:15 +00:00 by NatoBoram · 1 comment
NatoBoram commented 2021-09-25 21:13:15 +00:00 (Migrated from github.com)

Hi! I'm updating an old mod, and when I copy the example file in /src/main/java/net/fabricmc/example/ExampleMod.java, I can't use the logger.

// The import org.apache.logging cannot be resolved
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class ExampleMod implements ModInitializer {
	public static final Logger LOGGER = LogManager.getLogger("modid");
}

Is there something I need to update to use the logger?

Hi! I'm updating an old mod, and when I copy the example file in `/src/main/java/net/fabricmc/example/ExampleMod.java`, I can't use the logger. ```java // The import org.apache.logging cannot be resolved import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; public class ExampleMod implements ModInitializer { public static final Logger LOGGER = LogManager.getLogger("modid"); } ``` Is there something I need to update to use the logger?
NatoBoram commented 2021-09-25 21:50:01 +00:00 (Migrated from github.com)

Aight, what did it for me was deleting .classpath and .project, adding them to the .gitignore then running gradle eclipse vscode.

Aight, what did it for me was deleting `.classpath` and `.project`, adding them to the `.gitignore` then running `gradle eclipse vscode`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Steven/fabric-example-mod#132