The example below shows how to define the log message in an Artifact.
Procedure
Add a subJob with the tLogCatcher and
tJobLog components to the Job and connect the
components with a Main link.
If you have imported the demo project, you can drop a ready-to-use subJob
from the Joblets node in the
Repository tree view.
The tLogCatcher component collects exception data and
transfers it to Talend Studio
or to the web application. For further information, see Handling logs and exceptions.
Double-click the tJobLog component to open its basic
settings view.
In the Level section, select:
Developer to provide log information to the developer to
analyze or debug the execution of the Job in Talend Studio.
User to provide log information to the web users
regarding the execution of the Task.
Define a message in the Log message field according to
your needs. Below is an example of an error message: