Please use. NET 5,. NET 6, NET 7,. NET 8, NET Framework 4.6, NET Framework 4.61, NET Framework 4.7, NET Framework 4.72, NET Framework 4.8, NET Framework 4.81, and. NET Core 3.1 versions

CustomPatternLayout 类

Custom PatternLayout that registers the filename converter

Definition

命名空间: DeploySharp.Log
程序集: DeploySharp (在 DeploySharp.dll 中) 版本:0.0.4+6e8a2e904469617cd59619d666c0e272985c0e33
C#
public class CustomPatternLayout : PatternLayout
Inheritance
Object    LayoutSkeleton    PatternLayout    CustomPatternLayout

构造函数

CustomPatternLayout Initializes a new instance of CustomPatternLayout and registers the filename converter

属性

ContentType The content type output by this layout.
(继承自 LayoutSkeleton。)
ConversionPattern Gets or sets the pattern formatting string.
(继承自 PatternLayout。)
Footer The footer for the layout format.
(继承自 LayoutSkeleton。)
Header The header for the layout format.
(继承自 LayoutSkeleton。)
IgnoresException Flag indicating if this layout handles exceptions.
(继承自 LayoutSkeleton。)

方法

ActivateOptions Initializes layout options.
(继承自 PatternLayout。)
AddConverter(ConverterInfo) Add a converter to this PatternLayout
(继承自 PatternLayout。)
AddConverter(String, Type) Adds a named pattern converter to this PatternLayout.
(继承自 PatternLayout。)
CreatePatternParser Create the pattern parser instance
(继承自 PatternLayout。)
EqualsDetermines whether the specified object is equal to the current object.
(继承自 Object。)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(继承自 Object。)
Format(LoggingEvent) Convenience method for easily formatting the logging event into a string variable.
(继承自 LayoutSkeleton。)
Format(TextWriter, LoggingEvent) Produces a formatted string as specified by the conversion pattern.
(继承自 PatternLayout。)
GetHashCodeServes as the default hash function.
(继承自 Object。)
GetTypeGets the Type of the current instance.
(继承自 Object。)
MemberwiseCloneCreates a shallow copy of the current Object.
(继承自 Object。)
ToStringReturns a string that represents the current object.
(继承自 Object。)

参见