File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
MLAPI/NetworkingManagerComponents/Core Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace MLAPI . Logging
4
4
{
5
+ /// <summary>
6
+ /// Log level
7
+ /// </summary>
5
8
public enum LogLevel
6
9
{
10
+ /// <summary>
11
+ /// Developer logging level, most verbose
12
+ /// </summary>
7
13
Developer ,
14
+ /// <summary>
15
+ /// Normal logging level, medium verbose
16
+ /// </summary>
8
17
Normal ,
18
+ /// <summary>
19
+ /// Error logging level, very quiet
20
+ /// </summary>
9
21
Error ,
22
+ /// <summary>
23
+ /// Nothing logging level, no logging will be done
24
+ /// </summary>
10
25
Nothing
11
26
}
12
27
28
+ /// <summary>
29
+ /// Helper class for logging
30
+ /// </summary>
13
31
public static class LogHelper
14
32
{
33
+ /// <summary>
34
+ /// Gets the current log level.
35
+ /// </summary>
36
+ /// <value>The current log level.</value>
15
37
public static LogLevel CurrentLogLevel
16
38
{
17
39
get
@@ -23,8 +45,20 @@ public static LogLevel CurrentLogLevel
23
45
}
24
46
}
25
47
48
+ /// <summary>
49
+ /// Logs an info log with the proper MLAPI prefix
50
+ /// </summary>
51
+ /// <param name="message">The message to log</param>
26
52
public static void LogInfo ( string message ) => Debug . Log ( "[MLAPI] " + message ) ;
53
+ /// <summary>
54
+ /// Logs a warning log with the proper MLAPI prefix
55
+ /// </summary>
56
+ /// <param name="message">The message to log</param>
27
57
public static void LogWarning ( string message ) => Debug . LogWarning ( "[MLAPI] " + message ) ;
58
+ /// <summary>
59
+ /// Logs an error log with the proper MLAPI prefix
60
+ /// </summary>
61
+ /// <param name="message">The message to log</param>
28
62
public static void LogError ( string message ) => Debug . LogError ( "[MLAPI] " + message ) ;
29
63
}
30
64
}
You can’t perform that action at this time.
0 commit comments