(client)chore:将维度区分独立,将加载页面独立,降低代码耦合,写了更好看的注释
This commit is contained in:
@ -9,10 +9,13 @@ namespace Logging
|
||||
private static readonly SerilogLogger Logger = new LoggerConfiguration()
|
||||
.WriteTo.File("Logs/UnityLog.txt")
|
||||
.CreateLogger();
|
||||
|
||||
private static bool _initialized = false;
|
||||
public static void Init()
|
||||
{
|
||||
if(_initialized)
|
||||
return;
|
||||
Application.logMessageReceived += OnLogMessageReceived;
|
||||
_initialized = true;
|
||||
}
|
||||
|
||||
private static void OnLogMessageReceived(string logString, string stackTrace, LogType type)
|
||||
|
Reference in New Issue
Block a user