|
|
@@ -9,8 +9,8 @@ using System.Threading.Tasks; |
|
|
|
namespace TechbloxModdingAPI.Utility |
|
|
|
{ |
|
|
|
/// <summary> |
|
|
|
/// Utility class to access Gamecraft's built-in logging capabilities. |
|
|
|
/// The log is saved to %APPDATA%\..\LocalLow\FreeJam\Gamecraft\Player.Log |
|
|
|
/// Utility class to access Techblox's built-in logging capabilities. |
|
|
|
/// The log is saved to %APPDATA%\..\LocalLow\FreeJam\Techblox\Player.Log |
|
|
|
/// </summary> |
|
|
|
public static class Logging |
|
|
|
{ |
|
|
@@ -21,7 +21,7 @@ namespace TechbloxModdingAPI.Utility |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Write a regular message to Gamecraft's log |
|
|
|
/// Write a regular message to Techblox's log |
|
|
|
/// </summary> |
|
|
|
/// <param name="obj">The object to log</param> |
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)] |
|
|
@@ -37,7 +37,7 @@ namespace TechbloxModdingAPI.Utility |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Write a debug message to Gamecraft's log |
|
|
|
/// Write a debug message to Techblox's log |
|
|
|
/// </summary> |
|
|
|
/// <param name="obj">The object to log</param> |
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)] |
|
|
@@ -53,7 +53,7 @@ namespace TechbloxModdingAPI.Utility |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Write a debug message and object to Gamecraft's log |
|
|
|
/// Write a debug message and object to Techblox's log |
|
|
|
/// The reason this method exists in Svelto.Console is beyond my understanding |
|
|
|
/// </summary> |
|
|
|
/// <typeparam name="T">The type of the extra debug object</typeparam> |
|
|
@@ -72,7 +72,7 @@ namespace TechbloxModdingAPI.Utility |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Write an error message to Gamecraft's log |
|
|
|
/// Write an error message to Techblox's log |
|
|
|
/// </summary> |
|
|
|
/// <param name="obj">The object to log</param> |
|
|
|
/// <param name="extraData">The extra data to pass to the ILogger</param> |
|
|
@@ -83,7 +83,7 @@ namespace TechbloxModdingAPI.Utility |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Write an exception to Gamecraft's log and to the screen and exit game |
|
|
|
/// Write an exception to Techblox's log and to the screen and exit game |
|
|
|
/// </summary> |
|
|
|
/// <param name="e">The exception to log</param> |
|
|
|
/// <param name="extraData">The extra data to pass to the ILogger. |
|
|
@@ -95,7 +95,7 @@ namespace TechbloxModdingAPI.Utility |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Write an exception message to Gamecraft's log and to the screen and exit game |
|
|
|
/// Write an exception message to Techblox's log and to the screen and exit game |
|
|
|
/// </summary> |
|
|
|
/// <param name="obj">The object to log</param> |
|
|
|
/// <param name="e">The exception to log</param> |
|
|
@@ -114,7 +114,7 @@ namespace TechbloxModdingAPI.Utility |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Write a warning message to Gamecraft's log |
|
|
|
/// Write a warning message to Techblox's log |
|
|
|
/// </summary> |
|
|
|
/// <param name="obj">The object to log</param> |
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)] |
|
|
@@ -144,7 +144,7 @@ namespace TechbloxModdingAPI.Utility |
|
|
|
// descriptive logging |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Write a descriptive message to Gamecraft's log only when the API is a Debug build |
|
|
|
/// Write a descriptive message to Techblox's log only when the API is a Debug build |
|
|
|
/// </summary> |
|
|
|
/// <param name="obj">The object to log</param> |
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)] |
|
|
@@ -156,7 +156,7 @@ namespace TechbloxModdingAPI.Utility |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Write a descriptive message to Gamecraft's log including the current time and the calling method's name |
|
|
|
/// Write a descriptive message to Techblox's log including the current time and the calling method's name |
|
|
|
/// </summary> |
|
|
|
/// <param name="obj">The object to log</param> |
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)] |
|
|
@@ -169,7 +169,7 @@ namespace TechbloxModdingAPI.Utility |
|
|
|
// CLI logging |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Write a message to Gamecraft's command line |
|
|
|
/// Write a message to Techblox's command line |
|
|
|
/// </summary> |
|
|
|
/// <param name="obj">The object to log</param> |
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)] |
|
|
@@ -185,7 +185,7 @@ namespace TechbloxModdingAPI.Utility |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Write an error message to Gamecraft's command line |
|
|
|
/// Write an error message to Techblox's command line |
|
|
|
/// </summary> |
|
|
|
/// <param name="obj">The object to log</param> |
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)] |
|
|
@@ -201,7 +201,7 @@ namespace TechbloxModdingAPI.Utility |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Write a warning message to Gamecraft's command line |
|
|
|
/// Write a warning message to Techblox's command line |
|
|
|
/// </summary> |
|
|
|
/// <param name="obj">The object to log</param> |
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)] |
|
|
|