Printing Output

Printing Output

 

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:

Power Scripts for Jira Cloud queued tasks interface

Example output from the SIL Runner Gadget:

Power Scripts for Jira Cloud scheduled job templates panel

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.

Need support? Create a request with our support team.

Copyright © 2005 - 2026 Appfire | All rights reserved.