Skip to content

26e708ac abb5 e4c4 a399 90a0f7e4961f

Axel Kesseler edited this page Mar 1, 2023 · 6 revisions

CompositeLoggerExtension.AddConsoleLogger Method (ICompositeLogger, 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

Syntax

C#

public static ICompositeLogger AddConsoleLogger(
	this ICompositeLogger parent,
	IConsoleLoggerSettings settings,
	bool windows
)

Parameters

 

parent
Type: Plexdata.LogWriter.Abstraction.ICompositeLogger
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.

Return Value

Type: ICompositeLogger
The provided composite logger.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ICompositeLogger. 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).

Remarks

This method adds a new console logger using the settings parameter to read settings from.

See Also

Reference

CompositeLoggerExtension Class
AddConsoleLogger Overload
Plexdata.LogWriter.Extensions Namespace

Clone this wiki locally