diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-12-15 22:17:20 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-12-15 22:17:20 -0800 |
commit | e12782c1a6727390b2107ff2e39d4ac6173d86fc (patch) | |
tree | 3be0ccda0a9425927263f5b6b9616ef8ba11ac08 /samples/ProviderPortal/Code/URLRewriter.cs | |
parent | 078b1f350eb40ceee7423c25b1d833dd1f242da4 (diff) | |
parent | a545f7be2693596fa14540c359e43150a6a7cf88 (diff) | |
download | DotNetOpenAuth-origin/mono.zip DotNetOpenAuth-origin/mono.tar.gz DotNetOpenAuth-origin/mono.tar.bz2 |
Merge branch 'v2.5' into monoorigin/mono
Conflicts:
src/DotNetOpenId/Properties/AssemblyInfo.cs
src/DotNetOpenId/RelyingParty/AuthenticationResponse.cs
Diffstat (limited to 'samples/ProviderPortal/Code/URLRewriter.cs')
-rw-r--r-- | samples/ProviderPortal/Code/URLRewriter.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/samples/ProviderPortal/Code/URLRewriter.cs b/samples/ProviderPortal/Code/URLRewriter.cs index 5a56c99..78bf53e 100644 --- a/samples/ProviderPortal/Code/URLRewriter.cs +++ b/samples/ProviderPortal/Code/URLRewriter.cs @@ -7,6 +7,7 @@ using System.Xml; // nicked from http://www.codeproject.com/aspnet/URLRewriter.asp
namespace ProviderPortal {
public class URLRewriter : IConfigurationSectionHandler {
+ public static log4net.ILog Logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
protected XmlNode _oRules = null;
protected URLRewriter() { }
@@ -22,7 +23,7 @@ namespace ProviderPortal { // check validity of the values
if (oUrlNode == null || string.IsNullOrEmpty(oUrlNode.InnerText)
|| oRewriteNode == null || string.IsNullOrEmpty(oRewriteNode.InnerText)) {
- Trace.TraceWarning("Invalid urlrewrites rule discovered in web.config file.");
+ Logger.Warn("Invalid urlrewrites rule discovered in web.config file.");
continue;
}
@@ -44,7 +45,7 @@ namespace ProviderPortal { string zSubst = oRewriter.GetSubstitution(HttpContext.Current.Request.Path);
if (!string.IsNullOrEmpty(zSubst)) {
- Trace.TraceInformation("Rewriting url '{0}' to '{1}' ", HttpContext.Current.Request.Path, zSubst);
+ Logger.InfoFormat("Rewriting url '{0}' to '{1}' ", HttpContext.Current.Request.Path, zSubst);
HttpContext.Current.RewritePath(zSubst);
}
}
|