Logging Services
Castle provides an abstraction to the logging API of choice. The ILogger and ILoggerFactory interface, exposed by Castle.Core assembly are the main abstractions.
The same assembly provides the following logging factories implementations:
- Castle.Core.Logging.DiagnosticsLoggerFactory: Uses the EventLog API
- Castle.Core.Logging.NullLogFactory: Used as a place holder
- Castle.Core.Logging.StreamLoggerFactory: Uses a FileStream
- Castle.Core.Logging.WebLoggerFactory: Uses the HttpContext's TraceContext
We also provide Log4net and NLog implementations:
- Castle.Services.Logging.Log4netIntegration.Log4netFactory
- Castle.Services.Logging.NLogIntegration.NLogFactory