Method Log
Log(int, int, string)
Logs a message to the element log file.
Note that this method should not be used. Using Log(string, LogType, LogLevel) instead is recommended.
int Log(int iType, int iLevel, string message)
Parameters
iTypeintThe logging type. Supported values: 1=Information, 2=Error, 4=DebugInfo, 8=Always.
iLevelintThe logging level. Supported values: -1=Development Logging, 0=No Logging, 1=Level 1 Logging, 2=Level 2 Logging, 3=Level 3 logging, 4=Level 4 Logging, 5=Log everything.
messagestringThe message to be logged.
Returns
- int
HRESULT value. A value of 0 (S_OK) indicates the set succeeded.
Remarks
- The usage of this method is deprecated, use one of the other overloads instead.
- The message will be logged in the log file of the element(located in the folder C:\Skyline DataMiner\logging\).
- 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.
Log(string, LogType, LogLevel)
Logs a message to the element log file.
void Log(string message, LogType logType, LogLevel logLevel)
Parameters
messagestringThe message to be logged.
logTypeLogTypeThe logging type.
logLevelLogLevelThe logging level.
Remarks
- Prior to DataMiner 10.1.1 (RN 27995), the overloads with a LogType and/or LogLevel arguments were defined as an SLProtocol extension method (with optional LogType and LogLevel arguments) in the ProtocolExtenders class.
- The message will be logged in the log file of the element(located in the folder C:\Skyline DataMiner\logging\).
- 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.
Log(string, LogLevel)
Logs a message to the element log file.
void Log(string message, LogLevel logLevel)
Parameters
Remarks
- Prior to DataMiner 10.1.1 (RN 27995), the overloads with a LogType and/or LogLevel arguments were defined as an SLProtocol extension method (with optional LogType and LogLevel arguments) in the ProtocolExtenders class.
- This overload uses LogType.Allways.
- The message will be logged in the log file of the element(located in the folder C:\Skyline DataMiner\logging\).
- 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.
Log(string, LogType)
Logs a message to the element log file.
void Log(string message, LogType logType)
Parameters
Remarks
- Prior to DataMiner 10.1.1 (RN 27995), the overloads with a LogType and/or LogLevel arguments were defined as an SLProtocol extension method (with optional LogType and LogLevel arguments) in the ProtocolExtenders class.
- This overload uses LogLevel.DevelopmentLogging.
- The message will be logged in the log file of the element(located in the folder C:\Skyline DataMiner\logging\).
- 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.
Log(string)
Logs a message to the element log file.
void Log(string message)
Parameters
messagestringThe message to be logged.
Remarks
- Prior to DataMiner 10.1.1 (RN 27995), the overloads with a LogType and/or LogLevel arguments were defined as an SLProtocol extension method (with optional LogType and LogLevel arguments) in the ProtocolExtenders class.
- This overload uses LogType.Allways. and LogLevel.DevelopmentLogging.
- The message will be logged in the log file of the element(located in the folder C:\Skyline DataMiner\logging\).
- 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.