diff --git a/Test/Storage.Test/ACLTest.cs b/Test/Storage.Test/ACLTest.cs index 6eddc29..9614cd1 100644 --- a/Test/Storage.Test/ACLTest.cs +++ b/Test/Storage.Test/ACLTest.cs @@ -7,13 +7,13 @@ namespace LeanCloud.Test { public class ACLTest { [SetUp] public void SetUp() { - Logger.LogDelegate += Utils.Print; + LCLogger.LogDelegate += Utils.Print; LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com"); } [TearDown] public void TearDown() { - Logger.LogDelegate -= Utils.Print; + LCLogger.LogDelegate -= Utils.Print; } [Test] diff --git a/Test/Storage.Test/CloudTest.cs b/Test/Storage.Test/CloudTest.cs index 0e699f1..71df58d 100644 --- a/Test/Storage.Test/CloudTest.cs +++ b/Test/Storage.Test/CloudTest.cs @@ -9,13 +9,13 @@ namespace LeanCloud.Test { public class CloudTest { [SetUp] public void SetUp() { - Logger.LogDelegate += Utils.Print; + LCLogger.LogDelegate += Utils.Print; LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com"); } [TearDown] public void TearDown() { - Logger.LogDelegate -= Utils.Print; + LCLogger.LogDelegate -= Utils.Print; } [Test] diff --git a/Test/Storage.Test/FileTest.cs b/Test/Storage.Test/FileTest.cs index 48a2b38..19852da 100644 --- a/Test/Storage.Test/FileTest.cs +++ b/Test/Storage.Test/FileTest.cs @@ -12,13 +12,13 @@ namespace LeanCloud.Test { [SetUp] public void SetUp() { - Logger.LogDelegate += Utils.Print; + LCLogger.LogDelegate += Utils.Print; LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com"); } [TearDown] public void TearDown() { - Logger.LogDelegate -= Utils.Print; + LCLogger.LogDelegate -= Utils.Print; } [Test] diff --git a/Test/Storage.Test/ObjectTest.cs b/Test/Storage.Test/ObjectTest.cs index ab6e22f..81bcf54 100644 --- a/Test/Storage.Test/ObjectTest.cs +++ b/Test/Storage.Test/ObjectTest.cs @@ -9,13 +9,13 @@ namespace LeanCloud.Test { public class ObjectTest { [SetUp] public void SetUp() { - Logger.LogDelegate += Utils.Print; + LCLogger.LogDelegate += Utils.Print; LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com"); } [TearDown] public void TearDown() { - Logger.LogDelegate -= Utils.Print; + LCLogger.LogDelegate -= Utils.Print; } [Test] diff --git a/Test/Storage.Test/OperationTest.cs b/Test/Storage.Test/OperationTest.cs index 1e2f277..5e70100 100644 --- a/Test/Storage.Test/OperationTest.cs +++ b/Test/Storage.Test/OperationTest.cs @@ -8,13 +8,13 @@ namespace LeanCloud.Test { public class OperationTest { [SetUp] public void SetUp() { - Logger.LogDelegate += Utils.Print; + LCLogger.LogDelegate += Utils.Print; LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com"); } [TearDown] public void TearDown() { - Logger.LogDelegate -= Utils.Print; + LCLogger.LogDelegate -= Utils.Print; } [Test] diff --git a/Test/Storage.Test/QueryTest.cs b/Test/Storage.Test/QueryTest.cs index 6b5c705..de6041e 100644 --- a/Test/Storage.Test/QueryTest.cs +++ b/Test/Storage.Test/QueryTest.cs @@ -8,13 +8,13 @@ namespace LeanCloud.Test { public class QueryTest { [SetUp] public void SetUp() { - Logger.LogDelegate += Utils.Print; + LCLogger.LogDelegate += Utils.Print; LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com"); } [TearDown] public void TearDown() { - Logger.LogDelegate -= Utils.Print; + LCLogger.LogDelegate -= Utils.Print; } [Test] diff --git a/Test/Storage.Test/RelationTest.cs b/Test/Storage.Test/RelationTest.cs index c060c40..f66c1e2 100644 --- a/Test/Storage.Test/RelationTest.cs +++ b/Test/Storage.Test/RelationTest.cs @@ -9,13 +9,13 @@ namespace LeanCloud.Test { public class RelationTest { [SetUp] public void SetUp() { - Logger.LogDelegate += Utils.Print; + LCLogger.LogDelegate += Utils.Print; LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com"); } [TearDown] public void TearDown() { - Logger.LogDelegate -= Utils.Print; + LCLogger.LogDelegate -= Utils.Print; } [Test] diff --git a/Test/Storage.Test/RoleTest.cs b/Test/Storage.Test/RoleTest.cs index 9360afe..49c0179 100644 --- a/Test/Storage.Test/RoleTest.cs +++ b/Test/Storage.Test/RoleTest.cs @@ -11,13 +11,13 @@ namespace LeanCloud.Test { public class RoleTest { [SetUp] public void SetUp() { - Logger.LogDelegate += Utils.Print; + LCLogger.LogDelegate += Utils.Print; LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com"); } [TearDown] public void TearDown() { - Logger.LogDelegate -= Utils.Print; + LCLogger.LogDelegate -= Utils.Print; } [Test] diff --git a/Test/Storage.Test/SubClassTest.cs b/Test/Storage.Test/SubClassTest.cs index 663247a..a06595f 100644 --- a/Test/Storage.Test/SubClassTest.cs +++ b/Test/Storage.Test/SubClassTest.cs @@ -39,13 +39,13 @@ namespace LeanCloud.Test { public class SubClassTest { [SetUp] public void SetUp() { - Logger.LogDelegate += Utils.Print; + LCLogger.LogDelegate += Utils.Print; LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com"); } [TearDown] public void TearDown() { - Logger.LogDelegate -= Utils.Print; + LCLogger.LogDelegate -= Utils.Print; } [Test] diff --git a/Test/Storage.Test/UserTest.cs b/Test/Storage.Test/UserTest.cs index 9f6d9e3..3af8c44 100644 --- a/Test/Storage.Test/UserTest.cs +++ b/Test/Storage.Test/UserTest.cs @@ -9,13 +9,13 @@ namespace LeanCloud.Test { public class UserTest { [SetUp] public void SetUp() { - Logger.LogDelegate += Utils.Print; + LCLogger.LogDelegate += Utils.Print; LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com"); } [TearDown] public void TearDown() { - Logger.LogDelegate -= Utils.Print; + LCLogger.LogDelegate -= Utils.Print; } [Test] diff --git a/Test/Storage.Test/Utils.cs b/Test/Storage.Test/Utils.cs index 739b4aa..91e0a9b 100644 --- a/Test/Storage.Test/Utils.cs +++ b/Test/Storage.Test/Utils.cs @@ -5,15 +5,15 @@ using NUnit.Framework; namespace LeanCloud.Test { public static class Utils { - internal static void Print(LogLevel level, string info) { + internal static void Print(LCLogLevel level, string info) { switch (level) { - case LogLevel.Debug: + case LCLogLevel.Debug: TestContext.Out.WriteLine($"[DEBUG] {info}"); break; - case LogLevel.Warn: + case LCLogLevel.Warn: TestContext.Out.WriteLine($"[WARNING] {info}"); break; - case LogLevel.Error: + case LCLogLevel.Error: TestContext.Out.WriteLine($"[ERROR] {info}"); break; default: