diff --git a/Source/Engine/Engine/Debug.cs b/Source/Engine/Engine/Debug.cs index 30407cb9a..7539e8bba 100644 --- a/Source/Engine/Engine/Debug.cs +++ b/Source/Engine/Engine/Debug.cs @@ -8,23 +8,15 @@ namespace FlaxEngine /// /// Class containing methods to ease debugging while developing a game. /// - public sealed class Debug + public static class Debug { - internal static Logger _logger; + internal static Logger _logger = new Logger(new DebugLogHandler()); /// /// Get default debug logger. /// [HideInEditor] - public static ILogger Logger - { - get { return _logger; } - } - - static Debug() - { - _logger = new Logger(new DebugLogHandler()); - } + public static ILogger Logger => _logger; /// /// Assert a condition and logs a formatted error message to the Flax console on failure.