Class InstallLog
Represents an installation or upgrade log entry.
Inheritance
Namespace: Umbraco.Cms.Core
Assembly: Umbraco.Core.dll
Syntax
public class InstallLog
Constructors
View SourceInstallLog(Guid, bool, bool, DateTime, int, int, int, string, string, string?, string)
Initializes a new instance of the InstallLog class.
Declaration
public InstallLog(Guid installId, bool isUpgrade, bool installCompleted, DateTime timestamp, int versionMajor, int versionMinor, int versionPatch, string versionComment, string error, string? userAgent, string dbProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | installId | The unique identifier for this installation. |
| bool | isUpgrade | Whether this is an upgrade from a previous version. |
| bool | installCompleted | Whether the installation completed successfully. |
| DateTime | timestamp | The timestamp of the installation. |
| int | versionMajor | The major version number. |
| int | versionMinor | The minor version number. |
| int | versionPatch | The patch version number. |
| string | versionComment | A comment about the version (e.g., pre-release tag). |
| string | error | Any error message from the installation. |
| string | userAgent | The user agent string from the browser performing the installation. |
| string | dbProvider | The database provider being used. |
Properties
View SourceDbProvider
Gets or sets the database provider being used.
Declaration
public string DbProvider { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Error
Gets any error message from the installation, or an empty string if no error occurred.
Declaration
public string Error { get; }
Property Value
| Type | Description |
|---|---|
| string |
InstallCompleted
Gets or sets a value indicating whether the installation completed successfully.
Declaration
public bool InstallCompleted { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
InstallId
Gets the unique identifier for this installation.
Declaration
public Guid InstallId { get; }
Property Value
| Type | Description |
|---|---|
| Guid |
IsUpgrade
Gets or sets a value indicating whether this is an upgrade from a previous version.
Declaration
public bool IsUpgrade { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Timestamp
Gets or sets the timestamp of the installation.
Declaration
public DateTime Timestamp { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
UserAgent
Gets the user agent string from the browser performing the installation.
Declaration
public string? UserAgent { get; }
Property Value
| Type | Description |
|---|---|
| string |
VersionComment
Gets a comment about the version (e.g., pre-release tag like "beta").
Declaration
public string VersionComment { get; }
Property Value
| Type | Description |
|---|---|
| string |
VersionMajor
Gets the major version number of the installed version.
Declaration
public int VersionMajor { get; }
Property Value
| Type | Description |
|---|---|
| int |
VersionMinor
Gets the minor version number of the installed version.
Declaration
public int VersionMinor { get; }
Property Value
| Type | Description |
|---|---|
| int |
VersionPatch
Gets the patch version number of the installed version.
Declaration
public int VersionPatch { get; }
Property Value
| Type | Description |
|---|---|
| int |