logging - Castle Windsor: Best way to log when a component is registered? -


I want to login when a component (interface and implementation) is registered in my container. What is the best way to do this?

I have found the IKernelEvents interface that looks promising, but I'm not really able to use it.

No problem, found that IKernel implements IKernelEvents

  WindsorContainer.Cernel.ComponentRegistered + = (k, h) => _logger.Debug ("Registered {0} - {1} / {2}", k, h.ComponentModel.Service.FullName, h.ComponentModel.Emplementation.FullName);  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -