Fabric Studio enables you to develop, test and monitor projects within the Studio using Fabric’s test and log capabilities.
To display a list of recent messages from the server, click Server / Activity Logs (left menu). By default, this window only displays warnings and error messages, however additional messages and notices can also be reviewed.
The following are the main log options:
Click for more information about UI Components and Menus.
Server Logs
Activity Logs
Compilation Errors
Output
Logs and messages can also be used for debugging purposes. The following methods are available:
reportUserMessage ():
Enables Fabric Studio’s Debug options and a quick sanity review of the implementation. This method can be added to any Java code and viewed by clicking Messages under the Server Logs area. Messages are generated either by invoking the Fabric Studio Data Viewer or by executing the Table Population Debug option.
The recommended usage for this option is to debug a project during its implementation stages in order to prevent overloading Fabric Server runtime logs (k2Fabric.log). After the Debug process is complete, it is recommended to either delete the Debug message or to comment it out.
For example: fnCreateInstID under Customer LU
if (i_id!=null && !i_id.isEmpty()){
// Increase the input by 10 and return
reportUserMessage("o_id:"+(Integer.sum(Integer.valueOf(i_id),10)+""));
return Integer.sum(Integer.valueOf(i_id),10)+"";
}
log.info ():
Enables Fabric’s runtime Debug options. This method can be added to any Java code and its output can be viewed after deployment and during runtime. The runtime log (k2fabric.log) can be reviewed in the Fabric Server’s Logs directory or in the Studio’s Output logs.\ For example: fnCreateInstID under Customer LU
if (i_id!=null && !i_id.isEmpty()){
// Increase the input by 10 and return
log.info("o_id: "(Integer.sum(Integer.valueOf(i_id),10)+""));
return Integer.sum(Integer.valueOf(i_id),10)+"";
}
Fabric Studio enables you to develop, test and monitor projects within the Studio using Fabric’s test and log capabilities.
To display a list of recent messages from the server, click Server / Activity Logs (left menu). By default, this window only displays warnings and error messages, however additional messages and notices can also be reviewed.
The following are the main log options:
Click for more information about UI Components and Menus.
Server Logs
Activity Logs
Compilation Errors
Output
Logs and messages can also be used for debugging purposes. The following methods are available:
reportUserMessage ():
Enables Fabric Studio’s Debug options and a quick sanity review of the implementation. This method can be added to any Java code and viewed by clicking Messages under the Server Logs area. Messages are generated either by invoking the Fabric Studio Data Viewer or by executing the Table Population Debug option.
The recommended usage for this option is to debug a project during its implementation stages in order to prevent overloading Fabric Server runtime logs (k2Fabric.log). After the Debug process is complete, it is recommended to either delete the Debug message or to comment it out.
For example: fnCreateInstID under Customer LU
if (i_id!=null && !i_id.isEmpty()){
// Increase the input by 10 and return
reportUserMessage("o_id:"+(Integer.sum(Integer.valueOf(i_id),10)+""));
return Integer.sum(Integer.valueOf(i_id),10)+"";
}
log.info ():
Enables Fabric’s runtime Debug options. This method can be added to any Java code and its output can be viewed after deployment and during runtime. The runtime log (k2fabric.log) can be reviewed in the Fabric Server’s Logs directory or in the Studio’s Output logs.\ For example: fnCreateInstID under Customer LU
if (i_id!=null && !i_id.isEmpty()){
// Increase the input by 10 and return
log.info("o_id: "(Integer.sum(Integer.valueOf(i_id),10)+""));
return Integer.sum(Integer.valueOf(i_id),10)+"";
}