-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLAILogging.cs
30 lines (26 loc) · 980 Bytes
/
LAILogging.cs
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
27
28
29
30
namespace LobbyAppearanceImprovements
{
internal static class LAILogging
{
internal static BepInEx.Logging.ManualLogSource _logger = null;
public static void Init(BepInEx.Logging.ManualLogSource manualLogSource)
{
_logger = manualLogSource;
}
public static void LogError(string message, ConfigSetup.LoggingStyle loggingStyle)
{
if (ConfigSetup.ShowLoggingText.Value >= loggingStyle)
_logger.LogError(message);
}
public static void LogMessage(string message, ConfigSetup.LoggingStyle loggingStyle)
{
if (ConfigSetup.ShowLoggingText.Value >= loggingStyle)
_logger.LogMessage(message);
}
public static void LogWarning(string message, ConfigSetup.LoggingStyle loggingStyle)
{
if (ConfigSetup.ShowLoggingText.Value >= loggingStyle)
_logger.LogWarning(message);
}
}
}