Description:
Tweaks.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -56,7 +56,7 | |||
|
56 | 56 | {LogLevel.Warning, (ConsoleColor.Yellow, ConsoleColor.Black)}, |
|
57 | 57 | {LogLevel.Success, (ConsoleColor.Green, ConsoleColor.Black)}, |
|
58 | 58 | {LogLevel.Info, (ConsoleColor.Blue, ConsoleColor.Black)}, |
|
59 |
{LogLevel.Debug, (ConsoleColor.White, ConsoleColor. |
|
|
59 | {LogLevel.Debug, (ConsoleColor.White, ConsoleColor.Cyan)}, | |
|
60 | 60 | {LogLevel.Trace, (ConsoleColor.White, ConsoleColor.Yellow)}, |
|
61 | 61 | {LogLevel.Spy, (ConsoleColor.Black, ConsoleColor.White)}, |
|
62 | 62 | |
@@ -253,7 +253,7 | |||
|
253 | 253 | ) where T : class |
|
254 | 254 | { |
|
255 | 255 | // var properties = typeof(T).GetProperties(); |
|
256 |
// string message = string.Format("{0} = {1}", |
|
|
256 | // string message = string.Format("{0} = {1}", | |
|
257 | 257 | // value.ToString(), .ToString() ); |
|
258 | 258 | // var message = String.Join(", ", (object[])properties); |
|
259 | 259 | // |
@@ -270,7 +270,7 | |||
|
270 | 270 | Logging.Log_(LogLevel.Spy, message, lineNumber, caller, path); |
|
271 | 271 | } |
|
272 | 272 | |
|
273 | ||
|
273 | ||
|
274 | 274 | public static void Spy<T>(T? value, |
|
275 | 275 | [CallerLineNumber] int lineNumber = 0, |
|
276 | 276 | [CallerMemberName] string caller = null, |
@@ -292,7 +292,7 | |||
|
292 | 292 | foreach (var field in typeof(T).GetFields()) |
|
293 | 293 | { |
|
294 | 294 | try { |
|
295 |
properties.Add(field.ToString() + "=" |
|
|
295 | properties.Add(field.ToString() + "=" | |
|
296 | 296 | + field.GetValue(value).ToString()); |
|
297 | 297 | } |
|
298 | 298 | catch (NullReferenceException) |
@@ -319,7 +319,7 | |||
|
319 | 319 | foreach (var field in typeof(T).GetFields()) |
|
320 | 320 | { |
|
321 | 321 | try { |
|
322 |
properties.Add(field.ToString() + "=" |
|
|
322 | properties.Add(field.ToString() + "=" | |
|
323 | 323 | + field.GetValue(value).ToString()); |
|
324 | 324 | } |
|
325 | 325 | catch (NullReferenceException) |
You need to be logged in to leave comments.
Login now