forked from Mantibro/ShamanMod
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLog.cs
More file actions
26 lines (22 loc) · 910 Bytes
/
Log.cs
File metadata and controls
26 lines (22 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using BepInEx.Logging;
using System.Security;
using System.Security.Permissions;
[module: UnverifiableCode]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
namespace ShamanMod
{
internal static class Log
{
internal static ManualLogSource _logSource;
internal static void Init(ManualLogSource logSource)
{
_logSource = logSource;
}
internal static void Debug(object data) => _logSource.LogDebug(data);
internal static void Error(object data) => _logSource.LogError(data);
internal static void Fatal(object data) => _logSource.LogFatal(data);
internal static void Info(object data) => _logSource.LogInfo(data);
internal static void Message(object data) => _logSource.LogMessage(data);
internal static void Warning(object data) => _logSource.LogWarning(data);
}
}