Methods

Initialise

Initialise the console

C#
// Default configuration PowerConsole.Initialise(); // Custom configuration PowerConsole.Initialise(new ConsoleConfig());

Log

Log a message to the console at the specified severity level

C#
PowerConsole.Log(LogLevel.Error, "Hello World");

Clear

Clear all messages from the console

C#
PowerConsole.Clear();

RegisterCommand

Register a new command

C#
PowerConsole.RegisterCommand(new CustomCommand());

UnregisterCommand

Unregister a command

C#
PowerConsole.UnregisterCommand(new CustomCommand());

CommandExists

Determine if a command is registered

C#
PowerConsole.CommandExists("my command");