Logging

September 13, 2017 ยท View on GitHub

Castle Project does not contain its own logging framework, there are already excellent frameworks out there. Instead ILogger and ILoggerFactory are abstractions to decouple Castle libraries from the framework you decide to use.

Loggers

Castle Core provides the following logger implementations, however you can create your own:

LoggerImplementation
NullCastle.Core.Logging.NullLogFactory (Castle.Core.dll)
ConsoleCastle.Core.Logging.ConsoleFactory (Castle.Core.dll)
DiagnosticsCastle.Core.Logging.DiagnosticsLoggerFactory (Castle.Core.dll)
TraceCastle.Core.Logging.TraceLoggerFactory (Castle.Core.dll)
StreamCastle.Core.Logging.StreamLoggerFactory (Castle.Core.dll)
log4netCastle.Services.Logging.Log4netIntegration.Log4netFactory (Castle.Services.Logging.Log4netIntegration.dll)
log4net extendedCastle.Services.Logging.Log4netIntegration.ExtendedLog4netFactory (Castle.Services.Logging.Log4netIntegration.dll)
NLogCastle.Services.Logging.NLogIntegration.NLogFactory (Castle.Services.Logging.NLogIntegration.dll)
NLog extendedCastle.Services.Logging.NLogIntegration.ExtendedNLogFactory (Castle.Services.Logging.NLogIntegration.dll)
SerilogCastle.Services.Logging.SerilogIntegration.SerilogFactory (Castle.Services.Logging.SerilogIntegration.dll)