Skip to content

Latest commit

 

History

History

LoggingWithLog4Net

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Logging with log4net

This sample shows how to receive log messages from Docotic.Pdf library into a log4net logger.

Description

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.

See also