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,llInfo, andllDebugTHPDFLogTargetandTHPDFLogTargetsselect 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,Warning, andErrorare convenience wrappers for common severity levelsCleartruncates the configured file target when file logging is enabled