MsBuildLogger Class

Summary

Defines an Nuclei.Diagnostics.Logging.ILogger which writes to the MsBuild logger.
Namespace
NBuildKit.MsBuild.Tasks.Core
Base Types
  • Nuclei.Diagnostics.Logging.ILogger
graph TD Base0["Nuclei.Diagnostics.Logging.ILogger"]-->Type Type["MsBuildLogger"] class Type type-node

Syntax

public sealed class MsBuildLogger : Nuclei.Diagnostics.Logging.ILogger

Constructors

Name Summary
MsBuildLogger(TaskLoggingHelper) Initializes a new instance of the MsBuildLogger class.

Properties

Name Value Summary
Level LevelToLog
Gets or sets the current LevelToLog.

Methods

Name Value Summary
Close() void
Stops the logger and ensures that all log messages have been saved to the log.
Dispose() void
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Log(LogMessage) void
Logs the specified message.
ShouldLog(LogMessage) bool
Indicates if a message will be written to the log file based on the current log level and the level of the message.