Class Logger
- Namespace
- NominalSystems.Universe
- Assembly
- NominalSystems.Universe.dll
[Nominal] This class is able to log messages to the console. This can also sync messages to the Unreal applications using the Mono framework and will be able to log a number of severity types.
public static class Logger
- Inheritance
-
Logger
Fields
IsEnabled
A flag whether the logging is enabled. If not, then this will not log any messages to the console.
public static bool IsEnabled
Field Value
Methods
Assert(bool, string, params object[])
Asserts that the object is not null. If it is null, then this will log an error message.
public static void Assert(bool condition, string message, params object[] args)
Parameters
condition
boolThe condition to check
message
stringThe message to display in the error
args
object[]Any format text parameters
Error(string, params object[])
Logs a formatted message with a severity of 'ERROR'. This will output the message to the console and to the connected devices.
public static void Error(string message, params object[] args)
Parameters
message
stringThe message format string to log
args
object[]The arguments to format the message with
Fatal(string, params object[])
Logs a formatted message with a severity of 'FATAL'. This will output the message to the console and to the connected devices.
public static void Fatal(string message, params object[] args)
Parameters
message
stringThe message format string to log
args
object[]The arguments to format the message with
Info(string, params object[])
Logs a formatted message with a severity of 'INFO'. This will output the message to the console and to the connected devices.
public static void Info(string message, params object[] args)
Parameters
message
stringThe message format string to log
args
object[]The arguments to format the message with
Log(string, params object[])
Logs a formatted message with a severity of 'LOG'. This will output the message to the console and to the connected devices.
public static void Log(string message, params object[] args)
Parameters
message
stringThe message format string to log
args
object[]The arguments to format the message with
Warning(string, params object[])
Logs a formatted message with a severity of 'WARNING'. This will output the message to the console and to the connected devices.
public static void Warning(string message, params object[] args)