From f17301bfc1f73427040fd4443be8d238f56dfdcd Mon Sep 17 00:00:00 2001 From: dev_amdtel Date: Thu, 15 Aug 2013 15:51:12 +0400 Subject: [PATCH] Fixed logging bugs --- .../WebsitePanel.EnterpriseServer/Web.config | 44 +++++++++---------- .../HostedSolutionLog.cs | 10 +++++ 2 files changed, 32 insertions(+), 22 deletions(-) diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Web.config b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Web.config index 7a73a914..3a721fdd 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Web.config +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Web.config @@ -1,58 +1,58 @@ - + -
+
- + - + - + - + - - - + + + - + - + - + - - - + + + - + - + - + - - + + - + - + \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/HostedSolutionLog.cs b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/HostedSolutionLog.cs index 93b39b45..83257a78 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/HostedSolutionLog.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/HostedSolutionLog.cs @@ -50,12 +50,22 @@ namespace WebsitePanel.Providers.HostedSolution Log.WriteEnd("{0} {1}", LogPrefix, text); } + public static void LogInfo(string message) + { + Log.WriteInfo("{0} {1}", LogPrefix, message); + } + public static void LogInfo(string message, params object[] args) { string text = String.Format(message, args); Log.WriteInfo("{0} {1}", LogPrefix, text); } + public static void LogWarning(string message) + { + Log.WriteWarning("{0} {1}", LogPrefix, message); + } + public static void LogWarning(string message, params object[] args) { string text = String.Format(message, args);