Skip to content

Latest commit

 

History

History

LoggingWithNLog

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Logging with NLog

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

Description

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.

See also