API Reference
LogRegionFluent
The fluent methods of LogRegion, generated from its public properties: With... sets a property and Add... adds to a collection, both returning the same instance.
Inheritance
- Object
- LogRegionFluent
Methods
public static LogRegion WithCapacity(LogRegion logRegion, Int32 value) #LogRegionSets LogRegion.Capacity: How many lines are kept (default 1000).
Parameters
- logRegion ConsoleMonster.Widgets.LogRegion
- The instance.
- value System.Int32
- The value.
Returns
The same instance.
public static LogRegion WithLevelColumn(LogRegion logRegion, ColumnFormat value) #LogRegionSets 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.
Returns
The same instance.
public static LogRegion WithLevelColumn(LogRegion logRegion, Action<ColumnFormat> configure) #LogRegionConfigures 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.
Returns
The same instance.
public static LogRegion WithMaxLinesPerEntry(LogRegion logRegion, Int32 value) #LogRegionSets 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 System.Int32
- The value.
Returns
The same instance.
public static LogRegion WithPreferredHeight(LogRegion logRegion, Int32 value) #LogRegionSets LogRegion.PreferredHeight: Rows requested when measured without a height limit (default 8).
Parameters
- logRegion ConsoleMonster.Widgets.LogRegion
- The instance.
- value System.Int32
- The value.
Returns
The same instance.
public static LogRegion WithShowTime(LogRegion logRegion, Boolean value = true) #LogRegionSets LogRegion.ShowTime: Whether entries show their session time (default true).
Parameters
- logRegion ConsoleMonster.Widgets.LogRegion
- The instance.
- value System.Boolean = true
- The value (default true).
Returns
The same instance.
public static LogRegion WithWrap(LogRegion logRegion, Boolean value = true) #LogRegionSets 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 System.Boolean = true
- The value (default true).
Returns
The same instance.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?