Skip to main content
sam95317750
Known Participant
Jul 9, 2021 10:40 AM UTC
Question

Create log in same file

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 is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    Klaus Göbel
    Legend
    Jul 9, 2021 11:12 AM UTC
    K.Daube
    Community Expert
    Community Expert
    Jul 10, 2021 4:55 PM UTC

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

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

    Translate
    sam95317750
    Known Participant
    Jul 27, 2021 10:12 AM UTC

    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.

     

     

    Translate