Table of Contents

Method Log

Namespace
Skyline.DataMiner.Scripting
Assembly
QActionHelperBaseClasses.dll

Log(SLProtocol, string, LogType, LogLevel)

Logs a message to the element log file.

public static void Log(this SLProtocol protocol, string message, LogType logType = LogType.Allways, LogLevel logLevel = LogLevel.DevelopmentLogging)

Parameters

protocol SLProtocol

Object implementing SLProtocol instance.

message string

The message to be logged.

logType LogType

The logging type (default value: LogType.Allways).

logLevel LogLevel

The logging level (default value: LogLevel.DevelopmentLogging).

Remarks

  • The message will be logged in the log file of the element (located in C:\Skyline DataMiner\logging).
  • The message will only be logged when the element logging has been configured to include messages of the specified type and level.
  • This method is an extension method. The use of this extension method is preferred over the use of the Log method defined in the ISLProtocol interface as the parameters of type LogType and LogLevel increase readability.
  • From DataMiner 10.3.1 onwards (RN 34801), the message is limited to 5120 characters. When a larger message is provided, it will be truncated to this limit.