-
Notifications
You must be signed in to change notification settings - Fork 0
7a7b97f2 4f63 95ff dc72 de4e73e7d33c
CompositeLoggerExtension.AddPersistentLogger(TContext) Method (ICompositeLogger(TContext), ILoggerSettingsSection, String)
Adds a new persistent logger with settings that are read from section parameter but changes the used logging filename if not invalid.
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,
ILoggerSettingsSection section,
string filename
)
- parent
- Type: Plexdata.LogWriter.Abstraction.ICompositeLogger(TContext)
The composite logger to add the persistent logger to. - section
- Type: Plexdata.LogWriter.Abstraction.ILoggerSettingsSection
The configuration section to get all persistent logger settings from. - filename
- Type: System.String
The fully qualified logging filename.
- 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 section parameter to determine the settings from.
CompositeLoggerExtension Class
AddPersistentLogger Overload
Plexdata.LogWriter.Extensions Namespace