From 9660f57d16aa91380f5c54da8673428dc2033f77 Mon Sep 17 00:00:00 2001 From: markpollack Date: Thu, 14 Aug 2008 21:15:37 +0000 Subject: [PATCH] add logging statement. --- .../Remoting/CaoFactoryObject.cs | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/Spring/Spring.Services/Remoting/CaoFactoryObject.cs b/src/Spring/Spring.Services/Remoting/CaoFactoryObject.cs index 122c1904..f40872ca 100644 --- a/src/Spring/Spring.Services/Remoting/CaoFactoryObject.cs +++ b/src/Spring/Spring.Services/Remoting/CaoFactoryObject.cs @@ -37,7 +37,13 @@ namespace Spring.Remoting /// Mark Pollack /// Bruno Baia public class CaoFactoryObject : IFactoryObject, IInitializingObject - { + { + #region Logging + + private static readonly Common.Logging.ILog LOG = Common.Logging.LogManager.GetLogger(typeof(CaoFactoryObject)); + + #endregion + #region Fields private string remoteTargetName; @@ -132,8 +138,13 @@ namespace Spring.Remoting /// /// the CAO proxy public object GetObject() - { - ICaoRemoteFactory remoteFactory = (ICaoRemoteFactory) Activator.GetObject(typeof(ICaoRemoteFactory), serviceUrl.TrimEnd('/') + '/' + remoteTargetName); + { + string url = serviceUrl.TrimEnd('/') + '/' + remoteTargetName; + if (LOG.IsDebugEnabled) + { + LOG.Debug("Accessing CAO object of type ICaoRemoteFactory object at url = [" + url + "]"); + } + ICaoRemoteFactory remoteFactory = (ICaoRemoteFactory) Activator.GetObject(typeof(ICaoRemoteFactory), url); if (constructorArguments != null) {