Runtime logging facade (HPDFLogger)
The HPDFLogger unit gives you a process-wide runtime logging facade for HotPDF diagnostics — no compile-time switches and no custom rebuilds required
Main types
THPDFLoggeris the logging facade class, created automatically in the unit's initialisation section and exposed as the globalHPDFLogvariable, so application code only configures properties and calls methodsTHPDFLogLevelis the severity enumeration, orderedllOff(suppress everything) →llError→llWarning→llInfo→llDebug(most verbose); a record passes the filter only when its level is at or below the facade's LevelTHPDFLogTargetandTHPDFLogTargetschoose the output destinations:ltFile(writes to the file named by FileName), ltOutputDebugString, 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
Log(Level: THPDFLogLevel; const Msg: string)and its formatted overloads write a message with an explicit severity levelDebug,Info,WarningandErrorare convenience wrappers for the common severity levelsCleartruncates the configured file target when file logging is enabled