This is an automated email from the ASF dual-hosted git repository.

lizhanhui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq-client-csharp.git


The following commit(s) were added to refs/heads/develop by this push:
     new 6b9c567  Fix typo (#7)
6b9c567 is described below

commit 6b9c567c8456fb141c3c368cb6ee18e478f00e9f
Author: aaron ai <[email protected]>
AuthorDate: Mon Feb 21 13:16:57 2022 +0800

    Fix typo (#7)
---
 rocketmq-client-csharp/MqLogManager.cs | 6 +++++-
 tests/MqLogManagerTest.cs              | 6 +++---
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/rocketmq-client-csharp/MqLogManager.cs 
b/rocketmq-client-csharp/MqLogManager.cs
index 9e0875b..0608c8a 100644
--- a/rocketmq-client-csharp/MqLogManager.cs
+++ b/rocketmq-client-csharp/MqLogManager.cs
@@ -6,6 +6,11 @@ using NLog.Config;
 
 namespace org.apache.rocketmq
 {
+    /**
+     * RocketMQ Log Manager.
+     *
+     * Configure component logging, please refer to 
https://github.com/NLog/NLog/wiki/Configure-component-logging
+     */
     public class MqLogManager
     {
         public static LogFactory Instance
@@ -19,7 +24,6 @@ namespace org.apache.rocketmq
         {
             // Use name of current assembly to construct NLog config filename 
             Assembly thisAssembly = Assembly.GetExecutingAssembly();
-            Console.WriteLine(thisAssembly.Location);
             string configFilePath = 
Path.ChangeExtension(thisAssembly.Location, ".nlog");
 
             LogFactory logFactory = new LogFactory();
diff --git a/tests/MqLogManagerTest.cs b/tests/MqLogManagerTest.cs
index 932aa8a..71be3f5 100644
--- a/tests/MqLogManagerTest.cs
+++ b/tests/MqLogManagerTest.cs
@@ -15,12 +15,12 @@ namespace tests
         {
             Logger.Trace("This is a trace message.");
             Logger.Debug("This is a debug message.");
-            Logger.Info("This is a info message.");
+            Logger.Info("This is an info message.");
             Logger.Warn("This is a warn message.");
-            Logger.Error("This is a error message.");
+            Logger.Error("This is an error message.");
             Logger.Fatal("This is a fatal message.");
 
-            Logger.Error(new Exception("foobar"), "this is a error message 
with exception.");
+            Logger.Error(new Exception("foobar"), "this is an error message 
with exception.");
             Logger.Fatal(new Exception("foobar"), "this is a fatal message 
with exception.");
         }
     }

Reply via email to