The Class Scriptlogger is a static class wich allows multilevel logging within the .NET and Stealth Envirement.
Before calling the ScriptLogger for firsttime, you always should keep sure to call ScriptLogger.Initialize();.
Properties
Functions
Events
Sample
using System; using ScriptSDK.Engines; namespace App { internal static class Program { [STAThread] private static void Main() { ScriptLogger.Initialize(); // Should be always called once before using the ScriptLogger ScriptLogger.LogToStealth = true; //Allows logger to Write to Stealth UI Console ScriptLogger.LogToConsole = true; //Allows logger to Write to .Net Console (if active) ScriptLogger.LogToIDE = true; //Allows logger to write to Visual Studio related Debug Log /* Sends Text to Enabled Engines. On IDE and Console its a print without linebreak, on Stealth with Linebreak */ ScriptLogger.Write("Hello World"); /* Sends Text to Enabled Engines. On IDE and Console its a print with linebreak */ ScriptLogger.Write("Hello World with a new line :D"); } } }