Click or drag to resize

aceLogToConsoleControlsetAsOutput Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Allows access to the console output bugger to the logger and sets its color and prefix. If you call this method on logger that was already set to output, it will result in changed color

Namespace:  imbSCI.Core.reporting
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public virtual void setAsOutput(
	IConsoleControl logger,
	string prefix = "",
	ConsoleColor preferedColor = ConsoleColor.Black
)
Request Example View Source

Parameters

logger
Type: imbSCI.Core.reportingIConsoleControl
The logger assigned to the console output
prefix (Optional)
Type: SystemString
The prefix that will appear in front of each [!:IAceLogable.log(string)] call. It will update it if already registered prefix exist
preferedColor (Optional)
Type: SystemConsoleColor
If not Black - it will assign specified color to the logger. Otherwise, if Black is specified, it will assign automatically a color from the colorSelector
See Also