static LoggerHelper() { LoggerHelper.CurrentLogLevels = (LogLevel.DEBUG | LogLevel.INFO | LogLevel.WARNING | LogLevel.ERROR | LogLevel.EXCEPT | LogLevel.CRITICAL); LoggerHelper.DebugFilterStr = string.Empty; LoggerHelper.index = 0uL; LoggerHelper.m_logWriter = new LogWriter(); }
static LogHelper() { LogHelper.CurrentLogLevels = (LogLevel.DEBUG | LogLevel.INFO | LogLevel.WARNING | LogLevel.ERROR | LogLevel.EXCEPT | LogLevel.CRITICAL); LogHelper.DebugFilterStr = string.Empty; LogHelper.index = 0uL; LogHelper.m_logWriter = new LogWriter(); //获取unity的log信息 Application.RegisterLogCallback(new Application.LogCallback(LogHelper.ProcessExceptionReport)); }