This sample shows how to receive log messages from Docotic.Pdf library into a NLog logger.
Start with configuring NLog. This is required to receive log messages from the library. It is a common practice to put NLog configuration into app.config
file.
This example uses the NLog.Extensions.Logging
package to create an instance of the NLogLoggerFactory
class. This class implements the ILoggerFactory
interface. The code provides the instance to the LogManager class from the Docotic.Logging add-on.