Partilhar via


ConsoleLogger Constructors

Definition

Creates a console logger instance.

Overloads

ConsoleLogger()

Default constructor.

ConsoleLogger(LoggerVerbosity)

Create a logger instance with a specific verbosity. This logs to the default console.

ConsoleLogger(LoggerVerbosity, WriteHandler, ColorSetter, ColorResetter)

Initializes the logger, with alternate output handlers.

ConsoleLogger()

Source:
ConsoleLogger.cs

Default constructor.

public:
 ConsoleLogger();
public ConsoleLogger ();
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public ConsoleLogger ();
Public Sub New ()
Attributes

Applies to

ConsoleLogger(LoggerVerbosity)

Source:
ConsoleLogger.cs

Create a logger instance with a specific verbosity. This logs to the default console.

public:
 ConsoleLogger(Microsoft::Build::Framework::LoggerVerbosity verbosity);
public ConsoleLogger (Microsoft.Build.Framework.LoggerVerbosity verbosity);
new Microsoft.Build.Logging.ConsoleLogger : Microsoft.Build.Framework.LoggerVerbosity -> Microsoft.Build.Logging.ConsoleLogger
Public Sub New (verbosity As LoggerVerbosity)

Parameters

verbosity
LoggerVerbosity

Verbosity level.

Applies to

ConsoleLogger(LoggerVerbosity, WriteHandler, ColorSetter, ColorResetter)

Source:
ConsoleLogger.cs

Initializes the logger, with alternate output handlers.

public:
 ConsoleLogger(Microsoft::Build::Framework::LoggerVerbosity verbosity, Microsoft::Build::Logging::WriteHandler ^ write, Microsoft::Build::Logging::ColorSetter ^ colorSet, Microsoft::Build::Logging::ColorResetter ^ colorReset);
public ConsoleLogger (Microsoft.Build.Framework.LoggerVerbosity verbosity, Microsoft.Build.Logging.WriteHandler write, Microsoft.Build.Logging.ColorSetter colorSet, Microsoft.Build.Logging.ColorResetter colorReset);
new Microsoft.Build.Logging.ConsoleLogger : Microsoft.Build.Framework.LoggerVerbosity * Microsoft.Build.Logging.WriteHandler * Microsoft.Build.Logging.ColorSetter * Microsoft.Build.Logging.ColorResetter -> Microsoft.Build.Logging.ConsoleLogger
Public Sub New (verbosity As LoggerVerbosity, write As WriteHandler, colorSet As ColorSetter, colorReset As ColorResetter)

Parameters

verbosity
LoggerVerbosity
write
WriteHandler
colorSet
ColorSetter
colorReset
ColorResetter

Applies to