Class DebugLog
Utility class to manage debug and log messages transportation from/to managed/unmanaged data and sending them to log file.
Inheritance
Assembly: FlaxEngine.dll
File: Engine/Debug/DebugLog.h
Syntax
public class DebugLog
Methods
GetStackTrace()
Gets the managed stack trace.
Declaration
public static String GetStackTrace()
Returns
String
The stack trace text. |
Log(const StringView& message)
A variant of Debug.Log that logs an info message to the console.
Declaration
public static void Log(const StringView& message)
Parameters
StringView
message
The text message to display. |
Returns
void
|
Log(LogType type, const StringView& message)
Sends the log message to the Flax console and the log file.
Declaration
public static void Log(LogType type, const StringView& message)
Parameters
LogType
type
The message type. |
StringView
message
The message. |
LogError(const StringView& message)
A variant of Debug.Log that logs a error message to the console.
Declaration
public static void LogError(const StringView& message)
Parameters
StringView
message
The text message to display. |
Returns
void
|
LogException(MObject* exceptionObject)
Logs a formatted exception message to the Flax Console.
Declaration
public static void LogException(MObject* exceptionObject)
Parameters
MObject
exceptionObject
Runtime Exception. |
LogWarning(const StringView& message)
A variant of Debug.Log that logs a warning message to the console.
Declaration
public static void LogWarning(const StringView& message)
Parameters
StringView
message
The text message to display. |
Returns
void
|
ThrowArgument(const char* arg, const char* msg)
Throws the argument exception to the managed world. Can be called only during internal call from the C# world.
Declaration
public static NO_RETURN void ThrowArgument(const char* arg, const char* msg)
Parameters
char
arg
The argument name. |
char
msg
The message. |
Returns
NO_RETURN void
|
ThrowArgumentNull(const char* arg)
Throws the argument null to the managed world. Can be called only during internal call from the C# world.
Declaration
public static NO_RETURN void ThrowArgumentNull(const char* arg)
Parameters
char
arg
The argument name. |
Returns
NO_RETURN void
|
ThrowArgumentOutOfRange(const char* arg)
Throws the argument out of range to the managed world. Can be called only during internal call from the C# world.
Declaration
public static NO_RETURN void ThrowArgumentOutOfRange(const char* arg)
Parameters
char
arg
The argument name. |
Returns
NO_RETURN void
|
ThrowException(const char* msg)
Throws the exception to the managed world. Can be called only during internal call from the C# world.
Declaration
public static NO_RETURN void ThrowException(const char* msg)
Parameters
char
msg
The message. |
Returns
NO_RETURN void
|
ThrowNotSupported(const char* msg)
Throws the not supported operation exception to the managed world. Can be called only during internal call from the C# world.
Declaration
public static NO_RETURN void ThrowNotSupported(const char* msg)
Parameters
char
msg
The message. |
Returns
NO_RETURN void
|
ThrowNullReference()
Throws the null reference to the managed world. Can be called only during internal call from the C# world.
Declaration
public static NO_RETURN void ThrowNullReference()
Returns
NO_RETURN void
|