Class Logger
The Logger class provides an Installer Log.
Inheritance
Namespace: DotNetNuke.Services.Installer.Log
Assembly: DotNetNuke.dll
Syntax
public class Logger : object
Constructors
| Improve this Doc View SourceLogger()
Initializes a new instance of the Logger class.
Declaration
public Logger()
Properties
| Improve this Doc View SourceErrorClass
Gets or sets the CSS class used for Error Log Entries.
Declaration
public string ErrorClass { get; set; }
Property Value
Type | Description |
---|---|
System.String |
HasWarnings
The Logger class provides an Installer Log.
Declaration
public bool HasWarnings { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
HighlightClass
Gets or sets the CSS class used for Log Entries that should be highlighted.
Declaration
public string HighlightClass { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Logs
Gets a List of Log Entries.
Declaration
public IList<LogEntry> Logs { get; }
Property Value
Type | Description |
---|---|
IList<LogEntry> |
NormalClass
Gets or sets the CSS class used for normal Log Entries.
Declaration
public string NormalClass { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Valid
Gets a value indicating whether the Installation was Valid.
Declaration
public bool Valid { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceAddFailure(Exception)
The Logger class provides an Installer Log.
Declaration
public void AddFailure(Exception ex)
Parameters
Type | Name | Description |
---|---|---|
Exception | ex |
AddFailure(String)
The AddFailure method adds a new LogEntry of type Failure to the Logs collection.
Declaration
public void AddFailure(string failure)
Parameters
Type | Name | Description |
---|---|---|
System.String | failure | The description of the LogEntry. |
Remarks
This method also sets the Valid flag to false.
AddInfo(String)
The AddInfo method adds a new LogEntry of type Info to the Logs collection.
Declaration
public void AddInfo(string info)
Parameters
Type | Name | Description |
---|---|---|
System.String | info | The description of the LogEntry. |
AddWarning(String)
The AddWarning method adds a new LogEntry of type Warning to the Logs collection.
Declaration
public void AddWarning(string warning)
Parameters
Type | Name | Description |
---|---|---|
System.String | warning | The description of the LogEntry. |
EndJob(String)
The EndJob method adds a new LogEntry of type EndJob to the Logs collection.
Declaration
public void EndJob(string job)
Parameters
Type | Name | Description |
---|---|---|
System.String | job | The description of the LogEntry. |
GetLogsTable()
GetLogsTable formats log entries in an HtmlTable.
Declaration
public HtmlTable GetLogsTable()
Returns
Type | Description |
---|---|
HtmlTable | An |
ResetFlags()
The Logger class provides an Installer Log.
Declaration
public void ResetFlags()
StartJob(String)
The StartJob method adds a new LogEntry of type StartJob to the Logs collection.
Declaration
public void StartJob(string job)
Parameters
Type | Name | Description |
---|---|---|
System.String | job | The description of the LogEntry. |