CQG API 4.0 - Revised
Log Method
See Also  Send Feedback
content_
Specifies the string to be logged the string to be logged.
severity_
The severity of the information to be logged. The parameter is optional. If no parameter is specified lsInfo is used by default.
CQGLogger Interface : Log Method

Glossary Item Box

Description

Logs a message if the corresponding log severity is enabled.

Syntax

Visual Basic
Public Sub Log( _
   ByVal content_ As String, _
   Optional ByVal severity_ As eLogSeverity = lsInfo _
) 

Parameters

content_
Specifies the string to be logged the string to be logged.
severity_
ValueDescription
lsDebug

Debug log message.

lsError

Error log message.

lsFatal

Fatal log message.

(This is the default).

lsInfo

Info log message.

lsWarn

Warning log message.

The severity of the information to be logged. The parameter is optional. If no parameter is specified lsInfo is used by default.

Remarks

Log will be collected if and only if the logger's internal severity enables logs with the given severity.

Example

See an example of CQGLogger usage in CQGCEL example.

See Also