LogRegionFluent
ConsoleMonster.Widgets
The fluent methods of LogRegion, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.
Inheritance
- object
- LogRegionFluent
Methods
public static LogRegion Capacity(LogRegion logRegion, int value) #Sets LogRegion.Capacity: How many lines are kept (default 1000).
Parameters
- logRegion ConsoleMonster.Widgets.LogRegion
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.LogRegion { Capacity = value }; Ui.LogRegion().Capacity(value);public static LogRegion Filter(LogRegion logRegion, LogFilter? value) #Sets LogRegion.Filter: Which kept entries are drawn, or null for all of them. Hidden entries stay kept and count toward LogRegion.Capacity.
Parameters
- logRegion ConsoleMonster.Widgets.LogRegion
- The instance.
- value ConsoleMonster.Widgets.LogFilter?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.LogRegion { Filter = value }; Ui.LogRegion().Filter(value);public static LogRegion FitToEntries(LogRegion logRegion, bool value = true) #Sets LogRegion.FitToEntries: Takes only the rows its newest entries need, up to LogRegion.PreferredHeight, under a height limit too, and no rows while it is empty, so a message area in an inline live view appears and grows as messages arrive. Off by default: a dashboard keeps a stable LogRegion.PreferredHeight (and an empty log panel keeps a blank row).
Parameters
- logRegion ConsoleMonster.Widgets.LogRegion
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.LogRegion { FitToEntries = value }; Ui.LogRegion().FitToEntries(value);public static LogRegion HighlightText(LogRegion logRegion, string? value) #Sets LogRegion.HighlightText: Literal ordinal case-insensitive substring to emphasize in plain-text entries; null or empty disables it.
Parameters
- logRegion ConsoleMonster.Widgets.LogRegion
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.LogRegion { HighlightText = value }; Ui.LogRegion().HighlightText(value);public static LogRegion LevelColumn(LogRegion logRegion, ColumnFormat value) #Sets LogRegion.LevelColumn: Layout of the level column (ERR, WARN, VERB...). Every row shares its width, including info lines that have no tag, so messages always start in the same column; the width never shrinks during a session.
Parameters
- logRegion ConsoleMonster.Widgets.LogRegion
- The instance.
- value ConsoleMonster.Layout.ColumnFormat
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.LogRegion { LevelColumn = value }; Ui.LogRegion().LevelColumn(value);public static LogRegion LevelColumn(LogRegion logRegion, Action<ColumnFormat> configure) #Configures LogRegion.LevelColumn in place: Layout of the level column (ERR, WARN, VERB...). Every row shares its width, including info lines that have no tag, so messages always start in the same column; the width never shrinks during a session.
Parameters
- logRegion ConsoleMonster.Widgets.LogRegion
- The instance.
- configure System.Action<ConsoleMonster.Layout.ColumnFormat>
- Configures the value.
public static LogRegion MaxLinesPerEntry(LogRegion logRegion, int value) #Sets LogRegion.MaxLinesPerEntry: The most rows one entry may use when LogRegion.Wrap is on; the last row ends with an ellipsis when cut (default 3).
Parameters
- logRegion ConsoleMonster.Widgets.LogRegion
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.LogRegion { MaxLinesPerEntry = value }; Ui.LogRegion().MaxLinesPerEntry(value);public static LogRegion PreferredHeight(LogRegion logRegion, int value) #Sets LogRegion.PreferredHeight: Rows requested when measured without a height limit (default 8).
Parameters
- logRegion ConsoleMonster.Widgets.LogRegion
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.LogRegion { PreferredHeight = value }; Ui.LogRegion().PreferredHeight(value);public static LogRegion Scrollback(LogRegion logRegion, bool value = true) #Sets LogRegion.Scrollback: Also append each entry to normal scrollback above an inline live area. The retained entries still obey LogRegion.Capacity.
Parameters
- logRegion ConsoleMonster.Widgets.LogRegion
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.LogRegion { Scrollback = value }; Ui.LogRegion().Scrollback(value);public static LogRegion ScrollOffset(LogRegion logRegion, int value) #Sets LogRegion.ScrollOffset: Entries skipped from the newest end while scrolling; zero follows the newest entries.
Parameters
- logRegion ConsoleMonster.Widgets.LogRegion
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.LogRegion { ScrollOffset = value }; Ui.LogRegion().ScrollOffset(value);public static LogRegion ShowElapsed(LogRegion logRegion, bool value = true) #Sets LogRegion.ShowElapsed: Whether entries show their session time (default true).
Parameters
- logRegion ConsoleMonster.Widgets.LogRegion
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.LogRegion { ShowElapsed = value }; Ui.LogRegion().ShowElapsed(value);public static LogRegion ShowTimestamp(LogRegion logRegion, bool value = true) #Sets LogRegion.ShowTimestamp: Shows source timestamps instead of session time; missing timestamps reserve a blank aligned cell.
Parameters
- logRegion ConsoleMonster.Widgets.LogRegion
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.LogRegion { ShowTimestamp = value }; Ui.LogRegion().ShowTimestamp(value);public static LogRegion TimestampFormat(LogRegion logRegion, string value) #Sets LogRegion.TimestampFormat: Source timestamp format, using invariant culture (default ISO date, time, milliseconds and offset).
Parameters
- logRegion ConsoleMonster.Widgets.LogRegion
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.LogRegion { TimestampFormat = value }; Ui.LogRegion().TimestampFormat(value);public static LogRegion Wrap(LogRegion logRegion, bool value = true) #Sets LogRegion.Wrap: Whether long entries continue on further rows, aligned under the message, instead of being truncated (default false). Lines break after spaces, then after separators, as everywhere else.
Parameters
- logRegion ConsoleMonster.Widgets.LogRegion
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.LogRegion { Wrap = value }; Ui.LogRegion().Wrap(value);