procedure WriteToLog(Level : Integer; Content : String);
make an entry in the appropriate log for HL7Connect The level relates to the level of debugging that the administrator chooses. The following levels are described (and available as constants in the script environment):
DBG_FATAL 1 Fatal ErrorDBG_SERIOUS 2 Serious ErrorsDBG_ANNOUNCE 3 AnnouncementsDBG_WRONG 4 Code Logic ErrorsDBG_EXCEPTION 6 ExceptionsDBG_ERROR 7 Operational ErrorsDBG_WARNING 8 WarningsDBG_PROCESS 10 Program Flow
If the level is lower than that specified by the administrator then the message will be logged.
Note that writeToLog never actually takes any action other than writing to the log, irrespective of the level