Title: RE: [Castle-users] logging facility

That's a good insight, thanks.

Thanks to hammet's quick response on the message board I was able to sort this out with no problem.

The documentation on the wiki should be updated, though. It doesn't reflect that when you use the facility outside of a container managed class that you should use a factory to create your logger, rather than obtain the logger directly from the container.


-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Craig Neuwirt
Sent: Fri 7/28/2006 9:10 AM
To: [email protected]
Subject: Re: [Castle-users] logging facility

I believe the logging facility uses the name of the class with the ILogger
dependency

e.g.

namespace Foo
{
  public class Bar
  {
      public Bar(ILogger logger)
      { ...
      }
  }
}

The logger name will be Foo.Bar.  At least that is how I use it.


On 7/27/06, shawn hinsey <[EMAIL PROTECTED]> wrote:
>
> I'm having a tough time with the logging facility.
>
> What controls the logger's name? All of my loggers seem to come back
> named "Default," and CreateChildLogger(string) throws a
> NotImplementedException for log4net. How do I maintain control over the
> name of my loggers while still using them outside of the container?
>
> Thanks,
> Shawn
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> CastleProject-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/castleproject-users
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
CastleProject-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/castleproject-users

Reply via email to