Runtime logging facade (HPDFLogger)
The HPDFLogger unit provides a process-wide runtime logging facade for HotPDF diagnostics without compile-time switches or custom rebuilds
Main types
THPDFLoggeris the logging facade class and is exposed through the globalHPDFLoginstanceTHPDFLogLevelcontrols severity filtering withllOff,llError,llWarning,llInfoandllDebugTHPDFLogTargetandTHPDFLogTargetsselect file output,OutputDebugString, console output, or any combination of targets
Common configuration
uses
HPDFDoc, HPDFLogger;
begin
HPDFLog.Level := llInfo;
HPDFLog.Targets := [ltFile, ltOutputDebugString];
HPDFLog.FileName := 'hotpdf.log';
end;
Logging methods
Logwrites a message with an explicit severity levelDebug,Info,WarningandErrorare convenience wrappers for common severity levelsTHPDFLogger.EnterMethodwith a method name increases the trace indentation and returns anIHPDFLogScopereference whose release callsTHPDFLogger.ExitMethodand restores the previous indent levelCleartruncates the configured file target when file logging is enabled