コード例 #1
0
 /// <summary>
 /// Enter a method.
 /// </summary>
 /// <param name="invocationId">Method invocation identifier.</param>
 /// <param name="instance">The instance with the method.</param>
 /// <param name="method">Name of the method.</param>
 /// <param name="parameters">Method parameters.</param>
 public void EnterMethod(string invocationId, object instance, string method,
     IDictionary<string, object> parameters)
 {
     _logger.DebugFormat(CultureInfo.InvariantCulture,
         "invocationId: {0}\r\ninstance: {1}\r\nmethod: {2}\r\nparameters: {3}",
         invocationId, instance, method, parameters.AsFormattedString());
 }
コード例 #2
0
 public void EnterMethod(string invocationId, object instance, string method,
                         IDictionary <string, object> parameters)
 {
     _logger.DebugFormat(CultureInfo.InvariantCulture,
                         "invocationId: {0}\r\ninstance: {1}\r\nmethod: {2}\r\nparameters: {3}",
                         invocationId, instance, method, parameters.AsFormattedString());
 }
コード例 #3
0
        /// <summary>
        /// Enter a method.
        /// </summary>
        /// <param name="invocationId">Method invocation identifier.</param>
        /// <param name="instance">The instance with the method.</param>
        /// <param name="method">Name of the method.</param>
        /// <param name="parameters">Method parameters.</param>
        public void Enter(string invocationId, object instance, string method, IDictionary<string, object> parameters)
        {
            string instanceAsString = instance == null ? string.Empty : instance.ToString();
            string parametersAsString = parameters == null ? string.Empty : parameters.AsFormattedString();

            CloudTracingEventSource.Log.Enter(invocationId, instanceAsString, method, parametersAsString);
        }
コード例 #4
0
        /// <summary>
        /// Enter a method.
        /// </summary>
        /// <param name="invocationId">Method invocation identifier.</param>
        /// <param name="instance">The instance with the method.</param>
        /// <param name="method">Name of the method.</param>
        /// <param name="parameters">Method parameters.</param>
        public void Enter(string invocationId, object instance, string method, IDictionary <string, object> parameters)
        {
            string instanceAsString   = instance == null ? string.Empty : instance.ToString();
            string parametersAsString = parameters == null ? string.Empty : parameters.AsFormattedString();

            CloudTracingEventSource.Log.Enter(invocationId, instanceAsString, method, parametersAsString);
        }
コード例 #5
0
ファイル: KubernetesModule.cs プロジェクト: vtam-msft/iotedge
 public void EnterMethod(string invocationId, object instance, string method, IDictionary <string, object> parameters)
 {
     this.logger.LogInformation(
         "invocationId: {0}\r\ninstance: {1}\r\nmethod: {2}\r\nparameters: {3}",
         invocationId,
         instance,
         method,
         parameters.AsFormattedString());
 }
コード例 #6
0
 public void Enter(string invocationId, object instance, string method, IDictionary <string, object> parameters)
 {
     Write("{0} - [{1}]: Entered method {2} with arguments: {3}", invocationId, instance, method, parameters.AsFormattedString());
 }
コード例 #7
0
 public void Enter(string invocationId, object instance, string method, IDictionary<string, object> parameters)
 {
     Write("{0} - [{1}]: Entered method {2} with arguments: {3}", invocationId, instance, method, parameters.AsFormattedString());
 }
コード例 #8
0
 /// <summary>
 /// Trace the entry into a WAML operation
 /// </summary>
 /// <param name="invocationId">Correlation id</param>
 /// <param name="instance">implementing instance of the operation</param>
 /// <param name="method">Name of the method being called</param>
 /// <param name="parameters">Parameters passed in the method call, keyed by parameter name</param>
 public void Enter(string invocationId, object instance, string method, IDictionary <string, object> parameters)
 {
     WriteMessage("Enter: invocation: {0}, instance: {1}, method: {2}, parameters: {3}", invocationId, instance, method, parameters.AsFormattedString());
 }
コード例 #9
0
 public void EnterMethod(string invocationId, object instance, string method, IDictionary <string, object> parameters) =>
 _logger.LogTrace("EnterMethod {InvocationId} {Instance} {Method} ({Parameters})", invocationId, instance, method, parameters.AsFormattedString());
コード例 #10
0
ファイル: DebugTracer.cs プロジェクト: MarkZither/KimaiDotNet
 public void EnterMethod(string invocationId, object instance, string method, IDictionary <string, object> parameters)
 {
     Debug.WriteLine("invocationId: {0}\r\ninstance: {1}\r\nmethod: {2}\r\nparameters: {3}",
                     invocationId, instance, method, parameters.AsFormattedString());
 }
コード例 #11
0
 public void EnterMethod(string invocationId, object instance, string method, IDictionary <string, object> parameters)
 {
     Console.WriteLine($"invocationId: {invocationId}\r\ninstance: {instance}\r\nmethod: {method}\r\nparameters: {parameters.AsFormattedString()}");
 }