Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
CreatureChat
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Public
CreatureChat
Commits
662a7f1b
Unverified
Commit
662a7f1b
authored
Jan 19, 2022
by
modmuss50
Committed by
GitHub
Jan 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate to SLF4J (#157)
parent
4d8fff9e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ExampleMod.java
src/main/java/net/fabricmc/example/ExampleMod.java
+3
-3
No files found.
src/main/java/net/fabricmc/example/ExampleMod.java
View file @
662a7f1b
package
net
.
fabricmc
.
example
;
import
net.fabricmc.api.ModInitializer
;
import
org.
apache.logging.log4j.LogMana
ger
;
import
org.
apache.logging.log4j.Logger
;
import
org.
slf4j.Log
ger
;
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
=
Log
Manager
.
getLogger
(
"modid"
);
public
static
final
Logger
LOGGER
=
Log
gerFactory
.
getLogger
(
"modid"
);
@Override
public
void
onInitialize
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment