Class NuGetLogging
Логгер, имплементирующий NuGet.Common.ILogger. Выводит результаты в консоль
Inheritance
object
NuGet.Common.LoggerBase
NuGetLogging
Implements
NuGet.Common.ILogger
Inherited Members
NuGet.Common.LoggerBase.LogDebug(string)
NuGet.Common.LoggerBase.LogError(string)
NuGet.Common.LoggerBase.LogInformation(string)
NuGet.Common.LoggerBase.LogInformationSummary(string)
NuGet.Common.LoggerBase.LogMinimal(string)
NuGet.Common.LoggerBase.LogVerbose(string)
NuGet.Common.LoggerBase.LogWarning(string)
NuGet.Common.LoggerBase.DisplayMessage(NuGet.Common.LogLevel)
NuGet.Common.LoggerBase.CollectMessage(NuGet.Common.LogLevel)
NuGet.Common.LoggerBase.VerbosityLevel
Namespace: BuildSystem.Nuget.Logging
Assembly: BuildSystem.Core.dll
Syntax
public class NuGetLogging : LoggerBase, ILogger
Constructors
NuGetLogging(ILogger?)
Логгер, имплементирующий NuGet.Common.ILogger. Выводит результаты в консоль
Declaration
public NuGetLogging(ILogger? logger)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger |
Methods
Log(ILogMessage)
Записать в console
Declaration
public override void Log(ILogMessage message)
Parameters
Type | Name | Description |
---|---|---|
NuGet.Common.ILogMessage | message |
Overrides
NuGet.Common.LoggerBase.Log(NuGet.Common.ILogMessage)
Log(LogLevel, string)
Записать в console
Declaration
public override void Log(LogLevel level, string data)
Parameters
Type | Name | Description |
---|---|---|
NuGet.Common.LogLevel | level | |
string | data |
Overrides
NuGet.Common.LoggerBase.Log(NuGet.Common.LogLevel, string)
LogAsync(ILogMessage)
Записать в console
Declaration
public override Task LogAsync(ILogMessage message)
Parameters
Type | Name | Description |
---|---|---|
NuGet.Common.ILogMessage | message |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
LogAsync(LogLevel, string)
Записать в console
Declaration
public override Task LogAsync(LogLevel level, string data)
Parameters
Type | Name | Description |
---|---|---|
NuGet.Common.LogLevel | level | |
string | data |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Implements
NuGet.Common.ILogger