-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1534 from WEKIT-ECS/debug-log-tweaks
Debug Log with Importance Levels
- Loading branch information
Showing
87 changed files
with
317 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
using i5.Toolkit.Core.VerboseLogging; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
public class Debug : UnityEngine.Debug | ||
{ | ||
public static LogLevel MinimumLogLevel | ||
{ | ||
get => AppLog.MinimumLogLevel; | ||
set | ||
{ | ||
AppLog.MinimumLogLevel = value; | ||
} | ||
} | ||
|
||
public static void LogCritical(object message, Object context) | ||
{ | ||
AppLog.LogCritical(message.ToString(), context); | ||
} | ||
|
||
public static new void LogError(object message) | ||
{ | ||
AppLog.LogError(message.ToString()); | ||
} | ||
|
||
public static new void LogError(object message, Object context) | ||
{ | ||
AppLog.LogError(message.ToString(), context); | ||
} | ||
|
||
public static new void LogWarning(object message) | ||
{ | ||
AppLog.LogWarning(message.ToString()); | ||
} | ||
|
||
public static new void LogWarning(object message, Object context) | ||
{ | ||
AppLog.LogWarning(message.ToString(), context); | ||
} | ||
|
||
public static new void Log(object message) | ||
{ | ||
AppLog.LogInfo(message.ToString()); | ||
} | ||
|
||
public static new void Log(object message, Object context) | ||
{ | ||
AppLog.LogInfo(message.ToString(), context); | ||
} | ||
|
||
public static void LogInfo(object message, Object context = null) | ||
{ | ||
AppLog.LogInfo(message.ToString(), context); | ||
} | ||
|
||
public static void LogDebug(object message, Object context = null) | ||
{ | ||
AppLog.LogDebug(message.ToString(), context); | ||
} | ||
|
||
public static void LogTrace(object message, Object context = null) | ||
{ | ||
AppLog.LogTrace(message.ToString(), context); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.