Logs a message if the corresponding log severity is enabled.
Visual Basic |
---|
Public Sub Log( _ ByVal content_ As String, _ Optional ByVal severity_ As eLogSeverity = lsInfo _ ) |
- 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.Value Description lsDebug Debug log message.
lsError Error log message.
lsFatal Fatal log message.
(This is the default).
lsInfo Info log message.
lsWarn Warning log message.
Log will be collected if and only if the logger's internal severity enables logs with the given severity.
See an example of CQGLogger usage in CQGCEL example.