[]
        
(Showing Draft Content)

C1.Document.C1DocumentSource.AddToLog

AddToLog Method

AddToLog(Exception)

Adds log entry to the Log list.

Declaration
public LogEntry AddToLog(Exception ex)
Parameters
Type Name Description
Exception ex

The exception associated with log entry.

Returns
Type Description
LogEntry

The created LogEntry object.

AddToLog(LogEntrySeverity, string)

Adds log entry to the Log list.

Declaration
public LogEntry AddToLog(LogEntrySeverity severity, string message)
Parameters
Type Name Description
LogEntrySeverity severity

The severity of the log entry.

string message

The message of the log entry.

Returns
Type Description
LogEntry

The created LogEntry object.

AddToLog(LogEntrySeverity, string, params object[])

Adds log entry to the Log list.

Declaration
public LogEntry AddToLog(LogEntrySeverity severity, string format, params object[] args)
Parameters
Type Name Description
LogEntrySeverity severity

The severity of the log entry.

string format

The format string used to build message of the log entry.

object[] args

The arguments used to build message of the log entry.

Returns
Type Description
LogEntry

The created LogEntry object.