Table of Contents

Class SignatureLog

Namespace
NuGet.Packaging.Signing
Assembly
Chocolatey.NuGet.Packaging.dll

Log message for signature verification.

public class SignatureLog : ILogMessage, IEquatable<SignatureLog>
Inheritance
SignatureLog
Implements
ILogMessage
Inherited Members

Properties

Code

public NuGetLogCode Code { get; set; }

Property Value

NuGetLogCode

Level

public LogLevel Level { get; set; }

Property Value

LogLevel

LibraryId

public string LibraryId { get; set; }

Property Value

string

Message

public string Message { get; set; }

Property Value

string

ProjectPath

public string ProjectPath { get; set; }

Property Value

string

Time

public DateTimeOffset Time { get; set; }

Property Value

DateTimeOffset

WarningLevel

public WarningLevel WarningLevel { get; set; }

Property Value

WarningLevel

Methods

AsRestoreLogMessage()

Converts an SignatureLog into a Restore This is needed when an SignatureLog needs to be logged and loggers do not have visibility to SignatureLog.

public RestoreLogMessage AsRestoreLogMessage()

Returns

RestoreLogMessage

RestoreLogMessage equivalent to the SignatureLog.

DebugLog(string)

public static SignatureLog DebugLog(string message)

Parameters

message string

Returns

SignatureLog

DetailedLog(string)

public static SignatureLog DetailedLog(string message)

Parameters

message string

Returns

SignatureLog

Equals(SignatureLog)

public bool Equals(SignatureLog other)

Parameters

other SignatureLog

Returns

bool

Error(NuGetLogCode, string)

public static SignatureLog Error(NuGetLogCode code, string message)

Parameters

code NuGetLogCode
message string

Returns

SignatureLog

InformationLog(string)

public static SignatureLog InformationLog(string message)

Parameters

message string

Returns

SignatureLog

Issue(bool, NuGetLogCode, string)

public static SignatureLog Issue(bool fatal, NuGetLogCode code, string message)

Parameters

fatal bool
code NuGetLogCode
message string

Returns

SignatureLog

MinimalLog(string)

public static SignatureLog MinimalLog(string message)

Parameters

message string

Returns

SignatureLog