Skip to main content

DBMTables.Central.PDFLog

persistent class DBMTables.Central.PDFLog extends %Library.Persistent

SQL Table Name: DBMTables_Central.PDFLog

Property Inventory

Method Inventory

Parameters

parameter EXPECTEDERRORLOGFILENAME;
File name expected for PDF error logs
parameter EXPECTEDLOGFILENAME;
File name expected for full PDF logs
parameter EXPECTEDPDFNOTGENERATEDFILENAME;
File name expected for missing PDF logs (PDFs expected that could not be generated)
parameter ISCDOCSPDFLOGDIR;
Where this network directory is mounted on iscdocs
parameter PDFLOGDIR;
Network directory where the logs are located

Properties

property ConfigFile as %String;
PDF build configuration file used for the run this log contains info from, for example, daily.txt
Property methods: ConfigFileDisplayToLogical(), ConfigFileGet(), ConfigFileGetStored(), ConfigFileIsValid(), ConfigFileLogicalToDisplay(), ConfigFileLogicalToOdbc(), ConfigFileNormalize(), ConfigFileSet()
property LogDate as %String;
Date of the PDF build this log contains info from: in the format YYYY-MM-DD
Property methods: LogDateDisplayToLogical(), LogDateGet(), LogDateGetStored(), LogDateIsValid(), LogDateLogicalToDisplay(), LogDateLogicalToOdbc(), LogDateNormalize(), LogDateSet()
property LogDateTime as %String;
Date and time of the PDF build this log contains info from: in the format YYYYMMDD_HHMM
Property methods: LogDateTimeDisplayToLogical(), LogDateTimeGet(), LogDateTimeGetStored(), LogDateTimeIsValid(), LogDateTimeLogicalToDisplay(), LogDateTimeLogicalToOdbc(), LogDateTimeNormalize(), LogDateTimeSet()
property LogLocation as %String (MAXLEN = 1000);
Path to the log file
Property methods: LogLocationDisplayToLogical(), LogLocationGet(), LogLocationGetStored(), LogLocationIsValid(), LogLocationLogicalToDisplay(), LogLocationLogicalToOdbc(), LogLocationNormalize(), LogLocationSet()
property LogTime as %String;
Start time of the PDF build this log contains info from: in the format HH:MM
Property methods: LogTimeDisplayToLogical(), LogTimeGet(), LogTimeGetStored(), LogTimeIsValid(), LogTimeLogicalToDisplay(), LogTimeLogicalToOdbc(), LogTimeNormalize(), LogTimeSet()
property LogType as %String;
Log type (full log, error log, or notgenerated log)
Property methods: LogTypeDisplayToLogical(), LogTypeGet(), LogTypeGetStored(), LogTypeIsValid(), LogTypeLogicalToDisplay(), LogTypeLogicalToOdbc(), LogTypeNormalize(), LogTypeSet()

Methods

classmethod CheckLogs(verbose As %Boolean = 0) as %Status
Check for available logs and build this and associated tables
classmethod GetMostRecentBuildTimes() as %DynamicObject
Check the PDF log directory for files indicating the most recent build start and end times, and cache these values in ^PDFBUILDTIMES. Returns the PDF build time information gathered (as %DynamicObject).
classmethod GetTimeInfoFromFile(logDirectory As %String, filename As %String) as %String
Returns the time info read from the file specified, as a string.
method ProcessErrorLogEntries() as %Status
Save the entries of the error log to the DBMTables.Central.PDFErrorLogItem table
method ProcessNotGeneratedLogItems() as %Status
classmethod SaveNewLog(logLocation As %String, configFile As %String, logType As %String, logDateTime As %String) as %Status
Save a new instance of this class based on the information provided as args

Indexes

index (IDKEY on ) [IdKey, Type = key];
Index methods: IDKEYCheck(), IDKEYDelete(), IDKEYExists(), IDKEYOpen(), IDKEYSQLCheckUnique(), IDKEYSQLExists(), IDKEYSQLFindPKeyByConstraint(), IDKEYSQLFindRowIDByConstraint()

Inherited Members

Inherited Methods

Storage

Storage Model: CacheStorage (DBMTables.Central.PDFLog)

^DBMTables.Central.PDFLogD(ID)
=
%%CLASSNAME
LogType
Date
ConfigFile
LogLocation
LogDate
LogDateTime
LogTime
FeedbackOpens in a new tab