Class PluginErrorLogger
java.lang.Object
com.djrapitops.plan.utilities.logging.PluginErrorLogger
- All Implemented Interfaces:
ErrorLogger
New logger that logs errors to specific files.
-
Constructor Summary
ConstructorDescriptionPluginErrorLogger(PlanPlugin plugin, net.playeranalytics.plugin.server.PluginLogger logger, PlanFiles files, dagger.Lazy<ServerProperties> serverProperties, dagger.Lazy<VersionChecker> versionChecker, dagger.Lazy<Formatters> formatters)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
critical(Throwable throwable, ErrorContext context)
void
error(Throwable throwable, ErrorContext context)
void
warn(Throwable throwable, ErrorContext context)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.djrapitops.plan.utilities.logging.ErrorLogger
createMissingContext, critical, error, warn
-
Constructor Details
-
PluginErrorLogger
@Inject public PluginErrorLogger(PlanPlugin plugin, net.playeranalytics.plugin.server.PluginLogger logger, PlanFiles files, dagger.Lazy<ServerProperties> serverProperties, dagger.Lazy<VersionChecker> versionChecker, dagger.Lazy<Formatters> formatters)
-
-
Method Details
-
critical
- Specified by:
critical
in interfaceErrorLogger
-
error
- Specified by:
error
in interfaceErrorLogger
-
warn
- Specified by:
warn
in interfaceErrorLogger
-