-
Notifications
You must be signed in to change notification settings - Fork 0
861be5f0 31ad 0a2b 763f 1e7925691be3
CompositeLoggerExtension.AddPersistentLogger(TContext) Method (ICompositeLogger(TContext), IPersistentLoggerSettings)
Adds a new persistent logger with setting of provided settings parameter.
Namespace: Plexdata.LogWriter.Extensions
Assembly: Plexdata.LogWriter.Composite (in Plexdata.LogWriter.Composite.dll) Version: 1.0.7.1
C#
public static ICompositeLogger<TContext> AddPersistentLogger<TContext>(
this ICompositeLogger<TContext> parent,
IPersistentLoggerSettings settings
)
- parent
- Type: Plexdata.LogWriter.Abstraction.ICompositeLogger(TContext)
The composite logger to add the persistent logger to. - settings
- Type: Plexdata.LogWriter.Abstraction.IPersistentLoggerSettings
The settings to get all persistent logger settings from.
- TContext
- The type of the logger context.
Type: ICompositeLogger(TContext)
The provided composite logger.
In Visual Basic and C#, you can call this method as an instance method on any object of type ICompositeLogger(TContext). When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
This method adds a new persistent logger using the settings parameter to determine the settings from.
CompositeLoggerExtension Class
AddPersistentLogger Overload
Plexdata.LogWriter.Extensions Namespace