using System; using System.Runtime.InteropServices; using System.Text; using Cpp2IlInjected; using UnityEngine; namespace BestHTTP.Logger { // Token: 0x0200199E RID: 6558 [Token(Token = "0x200199E")] [StructLayout(3)] public class DefaultLogger : ILogger { // Token: 0x17001C66 RID: 7270 // (get) Token: 0x0600B01A RID: 45082 RVA: 0x00293548 File Offset: 0x00291748 // (set) Token: 0x0600B01B RID: 45083 RVA: 0x0029355C File Offset: 0x0029175C [Token(Token = "0x17001C66")] public Loglevels Level { [Token(Token = "0x600B01A")] [Address(RVA = "0x559440", Offset = "0x557E40", VA = "0x180559440", Slot = "4")] get; [Token(Token = "0x600B01B")] [Address(RVA = "0x559450", Offset = "0x557E50", VA = "0x180559450", Slot = "5")] set; } // Token: 0x17001C67 RID: 7271 // (get) Token: 0x0600B01C RID: 45084 RVA: 0x00293570 File Offset: 0x00291770 // (set) Token: 0x0600B01D RID: 45085 RVA: 0x00293584 File Offset: 0x00291784 [Token(Token = "0x17001C67")] public string FormatVerbose { [Token(Token = "0x600B01C")] [Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "6")] get; [Token(Token = "0x600B01D")] [Address(RVA = "0x3C1280", Offset = "0x3BFC80", VA = "0x1803C1280", Slot = "7")] set; } // Token: 0x17001C68 RID: 7272 // (get) Token: 0x0600B01E RID: 45086 RVA: 0x00293598 File Offset: 0x00291798 // (set) Token: 0x0600B01F RID: 45087 RVA: 0x002935AC File Offset: 0x002917AC [Token(Token = "0x17001C68")] public string FormatInfo { [Token(Token = "0x600B01E")] [Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")] get; [Token(Token = "0x600B01F")] [Address(RVA = "0x3C1260", Offset = "0x3BFC60", VA = "0x1803C1260", Slot = "9")] set; } // Token: 0x17001C69 RID: 7273 // (get) Token: 0x0600B020 RID: 45088 RVA: 0x002935C0 File Offset: 0x002917C0 // (set) Token: 0x0600B021 RID: 45089 RVA: 0x002935D4 File Offset: 0x002917D4 [Token(Token = "0x17001C69")] public string FormatWarn { [Token(Token = "0x600B020")] [Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230", Slot = "10")] get; [Token(Token = "0x600B021")] [Address(RVA = "0x3C1270", Offset = "0x3BFC70", VA = "0x1803C1270", Slot = "11")] set; } // Token: 0x17001C6A RID: 7274 // (get) Token: 0x0600B022 RID: 45090 RVA: 0x002935E8 File Offset: 0x002917E8 // (set) Token: 0x0600B023 RID: 45091 RVA: 0x002935FC File Offset: 0x002917FC [Token(Token = "0x17001C6A")] public string FormatErr { [Token(Token = "0x600B022")] [Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250", Slot = "12")] get; [Token(Token = "0x600B023")] [Address(RVA = "0x3C1290", Offset = "0x3BFC90", VA = "0x1803C1290", Slot = "13")] set; } // Token: 0x17001C6B RID: 7275 // (get) Token: 0x0600B024 RID: 45092 RVA: 0x00293610 File Offset: 0x00291810 // (set) Token: 0x0600B025 RID: 45093 RVA: 0x00293624 File Offset: 0x00291824 [Token(Token = "0x17001C6B")] public string FormatEx { [Token(Token = "0x600B024")] [Address(RVA = "0x3EE8E0", Offset = "0x3ED2E0", VA = "0x1803EE8E0", Slot = "14")] get; [Token(Token = "0x600B025")] [Address(RVA = "0x421E00", Offset = "0x420800", VA = "0x180421E00", Slot = "15")] set; } // Token: 0x0600B026 RID: 45094 RVA: 0x00293638 File Offset: 0x00291838 [Token(Token = "0x600B026")] [Address(RVA = "0x26846E0", Offset = "0x26830E0", VA = "0x1826846E0")] public DefaultLogger() { this.FormatVerbose = "[{0}] D [{1}]: {2}"; this.FormatInfo = "[{0}] I [{1}]: {2}"; this.FormatWarn = "[{0}] W [{1}]: {2}"; this.FormatErr = "[{0}] Err [{1}]: {2}"; this.FormatEx = "[{0}] Ex [{1}]: {2} - Message: {3} StackTrace: {4}"; bool flag = !Debug.isDebugBuild; this.Level = (flag ? Loglevels.Information : Loglevels.All); } // Token: 0x0600B027 RID: 45095 RVA: 0x00293694 File Offset: 0x00291894 [Token(Token = "0x600B027")] [Address(RVA = "0x2684540", Offset = "0x2682F40", VA = "0x182684540", Slot = "16")] public void Verbose(string division, string verb) { string text = this.k__BackingField; string formattedTime = this.GetFormattedTime(); Debug.Log(string.Format(text, formattedTime, division, verb)); } // Token: 0x0600B028 RID: 45096 RVA: 0x002936C0 File Offset: 0x002918C0 [Token(Token = "0x600B028")] [Address(RVA = "0x2684470", Offset = "0x2682E70", VA = "0x182684470", Slot = "17")] public void Information(string division, string info) { string text = this.k__BackingField; string formattedTime = this.GetFormattedTime(); Debug.Log(string.Format(text, formattedTime, division, info)); } // Token: 0x0600B029 RID: 45097 RVA: 0x002936EC File Offset: 0x002918EC [Token(Token = "0x600B029")] [Address(RVA = "0x2684610", Offset = "0x2683010", VA = "0x182684610", Slot = "18")] public void Warning(string division, string warn) { string text = this.k__BackingField; string formattedTime = this.GetFormattedTime(); Debug.LogWarning(string.Format(text, formattedTime, division, warn)); } // Token: 0x0600B02A RID: 45098 RVA: 0x00293718 File Offset: 0x00291918 [Token(Token = "0x600B02A")] [Address(RVA = "0x2683F40", Offset = "0x2682940", VA = "0x182683F40", Slot = "19")] public void Error(string division, string err) { string text = this.k__BackingField; string formattedTime = this.GetFormattedTime(); Debug.LogError(string.Format(text, formattedTime, division, err)); } // Token: 0x0600B02B RID: 45099 RVA: 0x00293744 File Offset: 0x00291944 [Token(Token = "0x600B02B")] [Address(RVA = "0x2684010", Offset = "0x2682A10", VA = "0x182684010", Slot = "20")] public void Exception(string division, string msg, Exception ex) { if (ex != 0) { StringBuilder stringBuilder = new StringBuilder(); if (ex != 0) { Exception innerException = ex.InnerException; if (ex._innerException != 0) { StringBuilder stringBuilder2 = stringBuilder.AppendLine(); } } int hashCode = stringBuilder.GetHashCode(); } string text = this.k__BackingField; object[] array = new object[5]; DateTime now = DateTime.Now; if (now != 0) { } array[0] = now; if (division != 0) { } array[1] = division; if (now != 0) { } array[2] = now; if ("null" != 0) { } array[3] = "null"; if (ex != 0) { Exception innerException2 = ex.InnerException; } if ("null" != 0) { } array[4] = "null"; Debug.LogError(string.Format(text, array)); } // Token: 0x0600B02C RID: 45100 RVA: 0x00293858 File Offset: 0x00291A58 [Token(Token = "0x600B02C")] [Address(RVA = "0x26843F0", Offset = "0x2682DF0", VA = "0x1826843F0")] private string GetFormattedTime() { /* An exception occurred when decompiling this method (0600B02C) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String BestHTTP.Logger.DefaultLogger::GetFormattedTime() ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: stloc:DateTime(var_2_09, callgetter:DateTime(DateTime::get_Now)) } at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88 --- End of inner exception stack trace --- at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663 */; } } }