YouTrack Standalone 2017.1 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: 18 April 2017