Configuration

A configuration object can be passed to the Initialise function to set various options

C#
PowerConsole.Initialise(new ConsoleConfig());

Colours

Set the colours used for different severity levels

C#
// The text colour of trace logs config.Colours.TraceColour; // The text colour of debug logs config.Colours.DebugColor; // The text colour of information logs config.Colours.InformationColor; // The text colour of warning logs config.Colours.WarningColor; // The text colour of error logs config.Colours.ErrorColor; // The text colour of critical logs config.Colours.CriticalColor; // The text colour of user entered commands config.Colours.NoneColour;

MaxBufferSize

Setting this too high might affect performance

Set the maximum number of log messages that the console will store in its buffer

C#
config.MaxBufferSize = 100;

Position

Set the initial position of the console

C#
config.Position = ConsolePosition.Top;

Height

Set the height of the console in pixels. This has no effect if the console position is set to Fullscreen

C#
config.Height = 400;

Width

Set the width of the console in pixels. Use null to strech the console across the screen. This has no effect if the console position is set to Fullscreen

C#
config.Width = null;

IsFixed

Can the console be dragged by the user

C#
config.IsFixed = false;