Configuring log4net with ninject.extensions.logging
737 views
Skip to first unread message
Sean Chambers
unread,
Nov 14, 2009, 12:57:41 PM11/14/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ninject
I'm trying to get the logging extension to parse my log4net
configuration. I have it wired up and I am getting log4net instances
via the LoggerFactory in my code, but for some reason log4net isn't
parsing my config section in the web.config. Is there a trick to get
log4net to look at my configuration through the logging extension?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ninject
doh!
that got it. thanks :)
I figured that the ninject logging factory was calling that for me.
Sean
On Nov 14, 1:04 pm, Ian Davis <ian.f.da...@gmail.com> wrote:
> Did you call XmlConfigurator.Configure()? I have never done it from a web
> app, but that is what I do for my normal apps.
>
Ian Davis
unread,
Nov 14, 2009, 1:12:50 PM11/14/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nin...@googlegroups.com
I thought the same when I first worked with it. There are so many ways to initialize and configure log4net that we left it to the user. he idea is that Ninject will provide all of the instances and the user makes sure that they are working correctly.
Sean Chambers
unread,
Nov 14, 2009, 1:39:48 PM11/14/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message