terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
Logger.cs
Go to the documentation of this file.
1using System;
5
6namespace UnityEngine
7{
8 // Token: 0x02000040 RID: 64
9 public class Logger : ILogger, ILogHandler
10 {
11 // Token: 0x06000083 RID: 131 RVA: 0x000029D4 File Offset: 0x00000BD4
18
19 // Token: 0x17000011 RID: 17
20 // (get) Token: 0x06000084 RID: 132 RVA: 0x000029FC File Offset: 0x00000BFC
21 // (set) Token: 0x06000085 RID: 133 RVA: 0x00002A10 File Offset: 0x00000C10
23 {
25 get
26 {
27 return this.<logHandler>k__BackingField;
28 }
30 set
31 {
33 }
34 }
35
36 // Token: 0x17000012 RID: 18
37 // (get) Token: 0x06000086 RID: 134 RVA: 0x00002A24 File Offset: 0x00000C24
38 // (set) Token: 0x06000087 RID: 135 RVA: 0x00002A38 File Offset: 0x00000C38
39 public bool logEnabled
40 {
42 get
43 {
44 return this.<logEnabled>k__BackingField;
45 }
47 set
48 {
49 }
50 }
51
52 // Token: 0x17000013 RID: 19
53 // (get) Token: 0x06000088 RID: 136 RVA: 0x00002A48 File Offset: 0x00000C48
54 // (set) Token: 0x06000089 RID: 137 RVA: 0x00002A5C File Offset: 0x00000C5C
56 {
58 get
59 {
60 return this.<filterLogType>k__BackingField;
61 }
63 set
64 {
66 }
67 }
68
69 // Token: 0x0600008A RID: 138 RVA: 0x00002A70 File Offset: 0x00000C70
71 {
73 {
74 return true;
75 }
76 }
77
78 // Token: 0x0600008B RID: 139 RVA: 0x00002A88 File Offset: 0x00000C88
79 private static string GetString(object message)
80 {
81 if ("Null" != null)
82 {
84 return "Null";
85 }
86 return "Null";
87 }
88
89 // Token: 0x0600008C RID: 140 RVA: 0x00002AB8 File Offset: 0x00000CB8
90 public void Log(LogType logType, object message)
91 {
92 if (!this.<logEnabled>k__BackingField)
93 {
94 return;
95 }
97 ILogHandler logHandler = this.<logHandler>k__BackingField;
98 string @string = Logger.GetString(message);
99 if (@string == null || @string != null)
100 {
101 return;
102 }
103 throw new ArrayTypeMismatchException();
104 }
105
106 // Token: 0x0600008D RID: 141 RVA: 0x00002AF4 File Offset: 0x00000CF4
107 public void Log(LogType logType, object message, Object context)
108 {
109 if (!this.<logEnabled>k__BackingField)
110 {
111 return;
112 }
114 ILogHandler logHandler = this.<logHandler>k__BackingField;
115 string @string = Logger.GetString(message);
116 if (@string == null || @string != null)
117 {
118 return;
119 }
120 throw new ArrayTypeMismatchException();
121 }
122
123 // Token: 0x0600008E RID: 142 RVA: 0x00002B30 File Offset: 0x00000D30
124 public void LogError(string tag, object message)
125 {
126 if (!this.<logEnabled>k__BackingField)
127 {
128 return;
129 }
131 ILogHandler logHandler = this.<logHandler>k__BackingField;
132 if (tag != null)
133 {
134 }
135 string @string = Logger.GetString(message);
136 if (@string == null || @string != null)
137 {
138 return;
139 }
140 throw new ArrayTypeMismatchException();
141 }
142
143 // Token: 0x0600008F RID: 143 RVA: 0x00002B70 File Offset: 0x00000D70
145 {
146 if (this.<logEnabled>k__BackingField)
147 {
148 ILogHandler logHandler = this.<logHandler>k__BackingField;
149 return;
150 }
151 }
152
153 // Token: 0x06000090 RID: 144 RVA: 0x00002B90 File Offset: 0x00000D90
154 public void LogFormat(LogType logType, Object context, string format, params object[] args)
155 {
156 if (this.<logEnabled>k__BackingField)
157 {
159 ILogHandler logHandler = this.<logHandler>k__BackingField;
160 return;
161 }
162 }
163
164 // Token: 0x040000BF RID: 191
167 private ILogHandler <logHandler>k__BackingField;
168
169 // Token: 0x040000C0 RID: 192
172 private bool <logEnabled>k__BackingField;
173
174 // Token: 0x040000C1 RID: 193
177 private LogType <filterLogType>k__BackingField;
178 }
179}
class f__AnonymousType0<< Count > j__TPar
static CultureInfo InvariantCulture
ILogHandler logHandler
Definition Logger.cs:23
static string GetString(object message)
Definition Logger.cs:79
ILogHandler< logHandler > k__BackingField
Definition Logger.cs:167
LogType filterLogType
Definition Logger.cs:56
void LogException(Exception exception, Object context)
Definition Logger.cs:144
Logger(ILogHandler logHandler)
Definition Logger.cs:12
LogType< filterLogType > k__BackingField
Definition Logger.cs:177
bool< logEnabled > k__BackingField
Definition Logger.cs:172
void LogFormat(LogType logType, Object context, string format, params object[] args)
Definition Logger.cs:154
bool IsLogTypeAllowed(LogType logType)
Definition Logger.cs:70
void LogError(string tag, object message)
Definition Logger.cs:124
void Log(LogType logType, object message, Object context)
Definition Logger.cs:107
void Log(LogType logType, object message)
Definition Logger.cs:90