-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAppLogger.cs
34 lines (30 loc) · 1.26 KB
/
AppLogger.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
31
32
33
34
using SuchByte.MacroDeck.Logging;
using System;
using System.Collections.Generic;
using System.Text;
namespace RecklessBoon.MacroDeck.Streamlabs_OBS_Plugin
{
public static class AppLogger
{
public static void Error(string message, params object[] args)
{
if (args.Length > 0) message = String.Format(message, args);
MacroDeckLogger.Error(PluginCache.Plugin, String.Format("[ERROR]: {0}", message.ToString()));
}
public static void Info(string message, params object[] args)
{
if (args.Length > 0) message = String.Format(message, args);
MacroDeckLogger.Info(PluginCache.Plugin, String.Format("[INFO]: {0}", message.ToString()));
}
public static void Trace(string message, params object[] args)
{
if (args.Length > 0) message = String.Format(message, args);
MacroDeckLogger.Trace(PluginCache.Plugin, String.Format("[TRACE]: {0}", message.ToString()));
}
public static void Warning(string message, params object[] args)
{
if (args.Length > 0) message = String.Format(message, args);
MacroDeckLogger.Warning(PluginCache.Plugin, String.Format("[WARN]: {0}", message.ToString()));
}
}
}