Skip to main content
sam95317750
Known Participant
July 9, 2021
Question

Create log in same file

  • July 9, 2021
  • 1 reply
  • 287 views

I want my FrameMaker script to create log in the same .log file. Is there a way to do this in FrameMaker scripting?

    This topic has been closed for replies.

    1 reply

    Klaus Göbel
    Legend
    July 9, 2021
    K.Daube
    Community Expert
    Community Expert
    July 10, 2021

    I have summarised the current knowledge about logging in FM and ExtendScript in this PDF:

    https://www.daube.ch/docu/files/ES-logging.pdf 

    sam95317750
    Known Participant
    July 27, 2021

    Thank you Klaus and K.Daube for response.

    I am currently using the following code (from extendscript-logging-master) to write content to a file, which uses an external file logging.jsxlib:

     

    //@include "./logging.jsxlib"

    var defaultLog = new LogFile();

    defaultLog.log(log to default text file);

     

    The problem is this creates a new file every time. 

    I want to log everything in the same file.

     

    Please suggest.