-
Notifications
You must be signed in to change notification settings - Fork 0
bd483552 379c 697b ab08 ed1abbf590bb
CompositeLoggerExtension.AddConsoleLogger(TContext) Method (ICompositeLogger(TContext), IConsoleLoggerSettings, Boolean)
Adds a new console 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> AddConsoleLogger<TContext>(
this ICompositeLogger<TContext> parent,
IConsoleLoggerSettings settings,
bool windows
)
- parent
- Type: Plexdata.LogWriter.Abstraction.ICompositeLogger(TContext)
The composite logger to add the console logger to. - settings
- Type: Plexdata.LogWriter.Abstraction.IConsoleLoggerSettings
The settings to get all console logger settings from. - windows
- Type: System.Boolean
True to choose the windows version and false to take the standard version instead.
- 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 console logger using the settings parameter to read settings from.
CompositeLoggerExtension Class
AddConsoleLogger Overload
Plexdata.LogWriter.Extensions Namespace