I don't think that's possible.
But you can configure NLog to output logs to multiple different sources.
The way facility works is it asks for a logger for the type it's going
to be injected into and what happens beyond that is up to your
underlying logging framework.
Adding docs for NLog is a good idea, +1 on that.
HTH,
Krzysztof
On 24/06/2011 8:13 PM, bdaniel7 wrote:
Hi,
Is it possible to add multiple loggers?
Like this:
public void Install( IWindsorContainer container, IConfigurationStore
store )
{
container.AddFacility< LoggingFacility>(
f =>
f.LogUsing( LoggerImplementation.NLog ).WithConfig( "nlog.config" )
.LogUsing( LoggerImplementation.Console ) );
}
I tried but in console nothing gets logged. Do I need to specify
config also for Console/Trace logger?
And is there an example on how to use nlog?
The docs show only log4net and I need to know if it's possible to use
named loggers (as nlog supports them).
--
You received this message because you are subscribed to the Google Groups "Castle
Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en.