-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathLogger.cs
More file actions
35 lines (28 loc) · 748 Bytes
/
Logger.cs
File metadata and controls
35 lines (28 loc) · 748 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
27
28
29
30
31
32
33
34
35
using System;
using UnityLogger = UnityEngine.Debug;
namespace KRPC.MechJeb {
public static class Logger {
public static void Debug(string message) {
#if DEBUG
Info(message);
#endif
}
public static void Info(string message) {
UnityLogger.Log("[KRPC.MechJeb] " + message);
}
public static void Warning(string message) {
UnityLogger.LogWarning("[KRPC.MechJeb] " + message);
}
public static void Warning(string message, Exception ex) {
Warning(message);
UnityLogger.LogException(ex);
}
public static void Severe(string message) {
UnityLogger.LogError("[KRPC.MechJeb] " + message);
}
public static void Severe(string message, Exception ex) {
Severe(message);
UnityLogger.LogException(ex);
}
}
}