add luckperms plugin
This commit is contained in:
18
LuckPerms.Torch/Impl/NLogPluginLogger.cs
Normal file
18
LuckPerms.Torch/Impl/NLogPluginLogger.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using me.lucko.luckperms.common.plugin.logging;
|
||||
using NLog;
|
||||
|
||||
namespace LuckPerms.Torch.Impl;
|
||||
|
||||
public class NLogPluginLogger(ILogger logger) : PluginLogger
|
||||
{
|
||||
public void warn(string str) => logger.Warn(str);
|
||||
|
||||
public void warn(string str, Exception t) => logger.Warn(t, str);
|
||||
|
||||
public void info(string str) => logger.Info(str);
|
||||
|
||||
public void severe(string str) => logger.Error(str);
|
||||
|
||||
public void severe(string str, Exception t) => logger.Error(t, str);
|
||||
}
|
Reference in New Issue
Block a user