Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warning

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !

Info
titleAvailability

This routine is available starting with katl-commons SIL Engine™ 2.5.

Syntax

logPrint(logLevel, #{message})

...

Excerpt

Prints a message in the configured Jira logs on the specified level: TRACE, DEBUG, INFO, WARN, ERROR, FATAL.

Logging the messages above messages is subject to the same configurations of the app as described here.

Parameters

Parameter name

Required

Description

logLevel

Yes

The minimum

Minimum level for logging the message is written for.

messageYes
The argument
Argument converted to a string that will be printed.

Return type

None

Configuration

...

  1. Log in Jira using an administrator account.
  2. Go to Administration.
  3. Go to System tab and select the Troubleshooting and Support option.
  4. Select the Logging & Profiling tab.
  5. Here you'll find a paragraph named Default Loggers with a lot of Find the Default Loggers paragraph with package names and their Logginglevel.
  6. Search in this list for the line com.keplerrominfo. And select from the Set Logging Level your desired level.

...

Permanently - the logging level will NOT be reset after Jira reboot, described here: Configure Jira logging.

 


Example

...


Code Block
logPrint("DEBUG", "A debug Message.");

If the configuration level is one of TRACE or DEBUG then the message will be printed out.

Otherwise , if the configuration level is INFO, WARN, ERROR or FATAL the message will not be displayed.

...

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "basic_routines"
labelsbasic_routines