πŸ“„CursedLogger

CursedMod provides a custom console printer. Use it if you need to print anything inside the console.

Log Types:

// CursedLogger.LogInfo(object message, string prefix = null)

CursedLogger.LogInfo("Test message");
CursedLogger.LogInfo("Test message", "CursedMod")

Where to use

Logs are a useful way of showing information inside the console to the end user. You can use them to debug the plugin.

Each module or plugin has a property called ShowDebug inside its base class. To use the CursedLogger::LogDebug(object, bool, string) method please follow the next example:

public class MyModule : CursedModule
{
    public override void OnLoaded()
    {
        CursedLogger.LogDebug("good implemented debug log");
        base.OnLoaded();
    }
}

Last updated

Was this helpful?