LayoutT Class |
Namespace: NLog.Layouts
The LayoutT type exposes the following members.
Name | Description | |
---|---|---|
LayoutT(Layout) |
Initializes a new instance of the LayoutT class.
| |
LayoutT(T) |
Initializes a new instance of the LayoutT class.
| |
LayoutT(Layout, String, CultureInfo) |
Initializes a new instance of the LayoutT class.
|
Name | Description | |
---|---|---|
FixedValue |
Fixed value
| |
IsFixed |
Is fixed value?
|
Name | Description | |
---|---|---|
Equals(T) |
Implements Equals using FixedValue | |
Equals(Object) | Determines whether the specified object is equal to the current object. (Overrides ObjectEquals(Object).) | |
FromMethod |
Create a typed layout from a lambda method.
| |
GetHashCode | Serves as the default hash function. (Overrides ObjectGetHashCode.) | |
Precalculate |
Precalculates the layout for the specified log event and stores the result
in per-log event cache.
Only if the layout doesn't have [ThreadAgnostic] and doesn't contain layouts with [ThreadAgnostic].
(Overrides LayoutPrecalculate(LogEventInfo).) | |
Render(LogEventInfo) |
Renders formatted output using the log event as context.
(Inherited from Layout.) | |
Render(LogEventInfo, StringBuilder) |
Optimized version of Render(LogEventInfo) that works best when
override of RenderFormattedMessage(LogEventInfo, StringBuilder) is available.
(Inherited from Layout.) | |
ToString | Returns a string that represents the current object. (Overrides ObjectToString.) |
Name | Description | |
---|---|---|
Equality |
Implements the operator == using FixedValue | |
(T to LayoutT) |
Converts a given value to a LayoutT.
| |
(String to LayoutT) |
Converts a given text to a LayoutT.
| |
Inequality |
Implements the operator != using FixedValue |
Name | Description | |
---|---|---|
RenderValueT |
Renders the logevent into a result-value by using the provided layout
(Defined by LayoutTypedExtensions.) |