Skip to end of banner
Go to start of banner

logPrint

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

Version 1 Next »

Availability

This routine is available since katl-commons 2.5 .

Syntax:

logPrint(logLevel, #{message})

Description:

This routine is used to print a message in the configured JIRA logs on the specified level: TRACE, DEBUG, INFO, WARN, ERROR, FATAL.

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

Parameters:

Parameter name

Required

Description

logLevel

Yes

The minimum level for logging for which the message is written.

messageYesThe argument converted to a string that will be printed.

Return type:

None

Configuration

To configure the JIRA Logging level you can do this in two ways:

1) Temporarily - (the logging level will be reset after a reboot of Jira):

a) Log in in Jira using an administrator account.

b) Go to "Administration".

c) Go to "System" tab and select the "Troubleshooting and Support" option.

d) Select the "Logging & Profiling" tab.

e) Here you'll find a paragraph named "Default Loggers" with a lot of package names and their Logging level.

f) Search in this list for the line "com.keplerrominfo". And select from the "Set Logging Level" your desired level.

2) Permanently - (the logging level will NOT be reset after a reboot of Jira), described here: http://confluence.kepler-rominfo.com/display/JJUP/Configure+JIRA+Logging

 

Example

 

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 the message will not be displayed.

For other usages you can consult the priority level list above.

See also:

 

  • No labels