Skip to end of banner
Go to start of banner

Printing Output

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

There are several functions which print output. Each one prints to a different place in Jira. This article details each.

Printing to the SIL Manager Console or SIL Runner Gadget

  • runnerLog()

Sample Code

runnerLog("TEST");

Example output from the SIL Manager:

Example output from the SIL Runner Gadget:

The SIL Engine ignores the runnerLog() function when script are run from other methods other than the SIL Manager.

Printing to the Jira System Logs

  • print()

  • printLog()

Sample Code

print("TEST");
logPrint("INFO", "TEST");

Example output:

Example Output

2020-08-13 02:01:23,619-0600 pool-387-thread-1 INFO admin 765x13039x1 1jpmc0 0:0:0:0:0:0:0:1 /rest/keplerrominfo/refapp/latest/async-script/runScriptFromEditor [c.k.s.lang.functions.LogPrintFunction] TEST

Printing to a file on the host system

  • printInFile()

    Printing to the silprograms folder

    printInFile("debug.txt", "Sample Output");

    Printing to the silprograms folder

    printInFile("path/to/file/debug.txt", "Sample Output");

    Printing to a system file

    printInFile("/path/to/system/file/debug.txt", "Sample Output");

    Printing to a system file - Windows

    printInFile("C:/path/to/system/file/debug.txt", "Sample Output");

Remember to click on the Refresh button!

Whenever changes are made outside the SIL Manager window, click on the "Refresh" button to view the changes.

Additional Help

Need help implementing this script? Talk to me directly to me by clicking on the bot on this page.

Filter by label

There are no items with the selected labels at this time.

  • No labels