This sample shows how to receive log messages from Docotic.Pdf library into a log4net logger.
To receive log messages from the library, you would need to configure log4net first. This code sample uses the Microsoft.Extensions.Logging.Log4Net.AspNetCore
package. The package configures log4net using the provided config. Look into the app.config
file, it contains more comments.
When log4net configuration is done, create an ILoggerFactory
instance and provide the instance to the LogManager class from the Docotic.Logging add-on.
- Get free time-limited license key
- Logging with NLog sample
- Error handling sample