Debug.Log Extensions
Documentation (1.1.9)
Sisus.Debugging.Critical Class Reference

Description

Utility class containing Debugging methods similar to the Debug class, with three main differences:

  1. The messages use a larger font in the console window.
  2. They always include stack trace even if they have been disabled for normal messages in Player Settings.
  3. The messages are always recorded in builds, even if "Use Player Log" is disabled in Player Settings.

Static Public Member Functions

static void Log ([CanBeNull]object message, Object context=null)
 Logs a message to the console. More...
 
static bool Ensure (bool condition, Object context=null)
 Logs an error message to the Console if condition is not true and returns true if condition was true or false if it was not. More...
 
static bool Ensure (bool condition, int channel, Object context=null)
 Logs an error message to the Console if condition is not true and returns true if condition was true or false if it was not. More...
 
static bool Guard (bool condition, Object context=null)
 Logs an error message to the Console if condition is not true and returns true if condition was false or true if it was not. More...
 
static bool Guard (bool condition, int channel, Object context=null)
 Logs an error message to the Console if condition is not true and returns true if condition was false or true if it was not. More...
 
static void Guard< TException > (bool condition, params object[] exceptionArguments)
 Throws an exception of type TException if condition is not true. More...