Class PluginErrorLogger
- java.lang.Object
-
- com.djrapitops.plan.utilities.logging.PluginErrorLogger
-
- All Implemented Interfaces:
ErrorLogger
@Singleton public class PluginErrorLogger extends java.lang.Object implements ErrorLogger
New logger that logs errors to specific files.
-
-
Constructor Summary
Constructors Constructor Description PluginErrorLogger(PlanPlugin plugin, net.playeranalytics.plugin.server.PluginLogger logger, PlanFiles files, dagger.Lazy<ServerProperties> serverProperties, dagger.Lazy<VersionChecker> versionChecker, dagger.Lazy<Formatters> formatters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
critical(java.lang.Throwable throwable, ErrorContext context)
void
error(java.lang.Throwable throwable, ErrorContext context)
void
warn(java.lang.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
critical, error, warn
-
-
-
-
Constructor Detail
-
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 Detail
-
critical
public void critical(java.lang.Throwable throwable, ErrorContext context)
- Specified by:
critical
in interfaceErrorLogger
-
error
public void error(java.lang.Throwable throwable, ErrorContext context)
- Specified by:
error
in interfaceErrorLogger
-
warn
public void warn(java.lang.Throwable throwable, ErrorContext context)
- Specified by:
warn
in interfaceErrorLogger
-
-