Skip to content
ConsoleMonster
Cmdlet

New-ConsoleLog

Module ConsoleMonster
Inputs
None
Outputs
ConsoleMonster.Widgets.LogRegion

Creates a log region: the newest lines of a log, bottom-aligned.

Syntax

New-ConsoleLog [-Capacity <Int32>] [-Height <Int32>] [[-Name] <String>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Creates a log region: the newest lines of a log, bottom-aligned.

In a live dashboard the log region receives Write-Host, Write-Information, Write-Warning, Write-Verbose and error output from the runspaces Start-ConsoleDashboard owns, plus Console.WriteLine from .NET code, so nothing scribbles over the screen. Write to it explicitly with Write-ConsoleLog.

Examples

Authored help example

EXAMPLE 1

New-ConsoleLog -Name 'Name'

Parameters

-Capacity Int32 optional
Lines kept in memory (default 1000).
-Height Int32 optional
Rows requested when printed once (default 8).
-Name String optionalposition: 0
The live name (default log).

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.