RockLib.Logging
A simple logging library.
Packages
RockLib.Logging
The main library.
RockLib.Logging.AspNetCore
RockLib.Logging for AspNetCore. Includes context providers and a logging action filter.
RockLib.Logging.Microsoft.Extensions
An implementation of Microsoft.Extensions.Logging that uses RockLib.Logging.
RockLib.Logging.Moq
Extensions for verifying logging operations with Moq.
- Getting started
- How to:
- Perform basic logging operations
- Instantiate and configure a logger
- Add log extended properties "safely" (i.e. automatically remove PII)
- Configure and use LoggerFactory
- Add RockLib logging to the Microsoft dependency injection system
- Add RockLib logging to the Microsoft logging system
- Use log providers
- Handle log provider errors
- Use context providers
- Use log processors / processing mode
- Use log level resolver
- Format logs
- Enable tracing for troubleshooting
- Use LoggingTraceListener to log trace messages
- Automatically capture HttpContext information in AspNetCore apps
- Automatically log AspNetCore controller actions
- Automatically log 404 http responses
- Change a logger's settings "on the fly" (in a running application)
- Test logging in an application using RockLib.Logging.Moq
- API Reference: