LoggerLog Method (LoggerLevel, String, String, String, Object) |
Log a message with parameters.
Namespace: ImslAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax public void Log(
LoggerLevel logLevel,
string className,
string methodName,
string message,
Object[] arg
)
Public Sub Log (
logLevel As LoggerLevel,
className As String,
methodName As String,
message As String,
arg As Object()
)
public:
void Log(
LoggerLevel logLevel,
String^ className,
String^ methodName,
String^ message,
array<Object^>^ arg
)
member Log :
logLevel : LoggerLevel *
className : string *
methodName : string *
message : string *
arg : Object[] -> unit
Parameters
- logLevel
- Type: ImslLoggerLevel
The Logger.Level of the message. If the logger is set to a lower log
level, the message is not logged. - className
- Type: SystemString
The name of the class issuing the log message. - methodName
- Type: SystemString
The name of the method issuing the log message. - message
- Type: SystemString
The string message to log that contains placeholders of the form
{0} to contain each element in the parameter list. - arg
- Type: SystemObject
An Object array of parameter values.
Remarks The output of a successful log entry is of the form "ClassName: formatted message"
See Also