SMAT and flat file message logging

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf SMAT and flat file message logging

  • Creator
    Topic
  • #48565
    Bob Stahley
    Participant

      At my current shop, we use SMAT files exclusively, but at a previous workplace, we forewent SMAT and created flat files that were archived nightly with a unix cron job.  In a cursory search of our tclprocs, I don’t find such a tcl script, so I’m assuming that it was custom coded.

      I know the tcl script wrote a copy of each record incoming the thread prior to processing, so I know where to place the code in the thread, and I know it added a timestamp line.

      Does anyone have a copy of the code to share, or if that’s too much to ask, would anyone have pointers to share with us as we write such a script?

      Thanks!

    Viewing 1 reply thread
    • Author
      Replies
      • #59006
        garry r fisher
        Participant

          Hi,

          This should be quite straight forward to do and now that you’ve suggested it I’m going to give it a go as it solves a lot of problems I have with SMAT files.

          I’m away for a couple of days now but I’ll get back to this next week and if no one else has beaten me to it I’ll post my code for you Bob.

          Regards

          Garry

        • #59007
          Charlie Bursell
          Participant

            Just be aware of the throughput hit you may take by doing this.  Message saving within the engine is enhanced to save messages with minimum throughput disruptions.  

            Writing to disk with each message can significantly slow an interface.  The message trafficic is already slowed by the use of the Recover Database, a necessary trade-off.

            If this is something you really have to do, set up the Tcl procedure to open the file and leave it open which will require any writes be inside a catch statement just in case.  Opening and Closing a file with each message will *REALLY* slow thnigs down.

            The problem is that people do things like this and then complain to us because they cannot get enough messages through the interface  🙁

        Viewing 1 reply thread
        • The forum ‘Cloverleaf’ is closed to new topics and replies.