• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class Logger

The Logger class provides an Installer Log.

Inheritance
System.Object
Logger
Namespace: DotNetNuke.Services.Installer.Log
Assembly: DotNetNuke.dll
Syntax
public class Logger : object

Constructors

| Improve this Doc View Source

Logger()

Initializes a new instance of the Logger class.

Declaration
public Logger()

Properties

| Improve this Doc View Source

ErrorClass

Gets or sets the CSS class used for Error Log Entries.

Declaration
public string ErrorClass { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

HasWarnings

The Logger class provides an Installer Log.

Declaration
public bool HasWarnings { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

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
| Improve this Doc View Source

Logs

Gets a List of Log Entries.

Declaration
public IList<LogEntry> Logs { get; }
Property Value
Type Description
IList<LogEntry>
| Improve this Doc View Source

NormalClass

Gets or sets the CSS class used for normal Log Entries.

Declaration
public string NormalClass { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

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 Source

AddFailure(Exception)

The Logger class provides an Installer Log.

Declaration
public void AddFailure(Exception ex)
Parameters
Type Name Description
Exception ex
| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

GetLogsTable()

GetLogsTable formats log entries in an HtmlTable.

Declaration
public HtmlTable GetLogsTable()
Returns
Type Description
HtmlTable

An instance.

| Improve this Doc View Source

ResetFlags()

The Logger class provides an Installer Log.

Declaration
public void ResetFlags()
| Improve this Doc View Source

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.

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS