[]
        
(Showing Draft Content)

C1.Document.C1DocumentSource.AddToLog

AddToLog Method

AddToLog(Exception)

Adds log entry to the Log list.

Declaration
public LogEntry AddToLog(Exception ex)
Public Function AddToLog(ex As Exception) As LogEntry
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)
Public Function AddToLog(severity As LogEntrySeverity, message As String) As LogEntry
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)
Public Function AddToLog(severity As LogEntrySeverity, format As String, ParamArray args As Object()) As LogEntry
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.