| File: Errors\ILogMessage.cs | Web Access |
| Project: src\nuget-client\src\NuGet.Core\NuGet.Common\NuGet.Common.csproj (NuGet.Common) |
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; namespace NuGet.Common { public interface ILogMessage { /// <summary> /// Level to indicate if this is an error or warning. /// </summary> LogLevel Level { get; set; } /// <summary> /// Level to indicate the warning level for the message. /// This is relevant only if the Level == LogLevel.Warning. /// </summary> WarningLevel WarningLevel { get; set; } /// <summary> /// Indicates the NuGet error code. /// </summary> NuGetLogCode Code { get; set; } /// <summary> /// Indicates the staring generated by the code to go with the error code. /// </summary> string Message { get; set; } /// <summary> /// Indicates the project for which the error was thrown. /// </summary> string? ProjectPath { get; set; } /// <summary> /// Indicates the date time at which the error occurred. /// </summary> DateTimeOffset Time { get; set; } } }