Skip to content

Commit

Permalink
Using the pluginLogger
Browse files Browse the repository at this point in the history
  • Loading branch information
harry-xi committed Sep 22, 2024
1 parent cdebc54 commit c90081f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main/scala/Main.scala
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import org.allaymc.api.plugin.Plugin
import org.slf4j.LoggerFactory

class MyPlugin extends Plugin {
val log = LoggerFactory.getLogger(getClass)
override def onLoad(): Unit =
log.info("onLoad")
pluginLogger.info("onLoad")
override def onEnable(): Unit =
log.info("onEnable")
pluginLogger.info("onEnable")
override def onDisable(): Unit =
log.info("onDisable")
pluginLogger.info("onDisable")
}

0 comments on commit c90081f

Please sign in to comment.