Table of Contents

Class LogHost

Namespace
PdfSharp.Logging
Assembly
PdfSharp.System.dll

Provides a single global logger factory used for logging in PDFsharp.

public static class LogHost
Inheritance
object
LogHost

Properties

Factory

Gets or sets the current global logger factory singleton for PDFsharp. Every logger used in PDFsharp code is created by this factory. You can change the logger factory at any one time you want. If no factory is provided the NullLoggerFactory is used as the default.

Logger

Gets the global PDFsharp default logger.

Methods

CreateLogger(string)

Creates a logger with a given category name.

CreateLogger<T>()

Creates a logger with the full name of the given type as category name.

ResetLogging()

Resets the logging host to the state it has immediately after loading the PDFsharp library.