Method UseLoggerFactory
- Namespace
- BitMiracle.Docotic.Pdf.Logging
- Assembly
- BitMiracle.Docotic.Pdf.Logging.dll
UseLoggerFactory(ILoggerFactory)
Uses the specified factory for logging.
public static void UseLoggerFactory(ILoggerFactory factory)
Parameters
factory
ILoggerFactoryThe logger factory to use. The caller of the method is responsible for disposing of factory.
Remarks
We recommend to set logger factory before creating of any Docotic.Pdf objects. The call of this method may not affect PdfDocument objects created earlier.
By default, the library uses NullLoggerFactory. You can also use NullLoggerFactory to disable logging.