YouTrack Standalone 7.0 Help

Logging Methods

The following statements are used to display errors or warnings to the user and write messages to the log files in YouTrack.

Message

Syntaxmessage(string)
Parametersstring: The text to display on the user interface.
DescriptionDisplays the specified string of text at the top of the page in YouTrack when the specified condition is met.
Example
message("Hello! You are logged in as " + loggedInUser.fullName);

Debug

Syntaxdebug(string)
Parametersstring: The text to write to the log file.
DescriptionWrites the specified string of text in the worklfow.log and youtrack.log files.
Example
debug("The number: "+ number);

Info

Syntaxinfo(string)
Parametersstring: The text to write to the log file.
DescriptionWrites the specified string of text in the worklfow.log and youtrack.log files.
Example
info("March 8? - " + (now != 2013-03-08));

Warn

Syntaxwarn(string)
Parametersstring: The text to write to the log file.
DescriptionWrites the specified string of text in the worklfow.log and youtrack.log files.
Example
warn("Logged in user is developer: " + loggedInUser.isInGroup("Developers"));

Error

Syntaxerror(string)
Parametersstring: The text to write to the log file.
DescriptionWrites the specified string of text in the worklfow.log, youtrack.log, and errors.log files.
Example
error("Now: " + now.format(fullDate));

Fatal

Syntaxfatal(string)
Parametersstring: The text to write to the log file.
DescriptionWrites the specified string of text in the worklfow.log, youtrack.log, and errors.log files.
Example
fatal((issue.created == null) + "");
Last modified: 29 September 2016