Fixed logging bugs

This commit is contained in:
dev_amdtel 2013-08-15 15:51:12 +04:00
parent 3a4ef2dffc
commit f17301bfc1
2 changed files with 32 additions and 22 deletions

View file

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration, Microsoft.Web.Services3"/>
@ -37,7 +37,7 @@
</protocols>
<soapServerProtocolFactory type="Microsoft.Web.Services3.WseProtocolFactory, Microsoft.Web.Services3"/>
</webServices>
<compilation targetFramework="4.0" />
<compilation targetFramework="4.0" debug="true"/>
</system.web>
<!-- WSE 3.0 settings -->
<microsoft.web.services3>

View file

@ -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);