Custom log message

Custom log message

The advanced, other workflow component, Custom log message can be used for adding a user defined log message into the job log of the current workflow. This can e.g. be used in order to report an issue to the job log (so that the relevant user and see the problem). This problem can e.g. be that the validation of an input file has failed.

 

The Custom log message component has these parameters:

 


 

 

Custom log message

The custom log message can be a fixed text like above, but it can also be set via an Xpath expression so that the message can include dynamic information about the issue found.

 

Level

Here you can set the level/severity of the log message. The level can be set to a fixed value, but it can also be set via an Xpath expression.

Possible values are:

 

TRACE

DEBUG

INFO

WARN

ERROR

FATAL

 

The severity of the error is reflected in the color used in the job log of this component and the color of the job log entry:

 

Log messages of type: TRACE, DEBUG are prented in a normal grey color, but these log messages are normally not shown in the job log. You can only see them if debug or trace has been activated on the machine. This can be changed with the application property:

logging.level.com.interform400.joblog.JobLogger=TRACE

But note that this can generate extreme amounts of job log lines.

 

Logo message of type INFO are presented in a normal grey color.

 

Log messages of type WARN are presented in orange.

 

Log messages of type ERROR and FATAL are presented in red.

 

Please notice, that the workflow will continue to run - even if you insert a FATAL log message. If you also want to stop processing, then you can consider to also insert the component, error.


    • Related Articles

    • Release log

      This is the list of the InterFormNG2 releases and the major new features in each release: Version 3.5.0 Important: InterFormNG2 now runs on Java 17. So you need to install Java 17 on Linux and the IBM i platform, if you want to InterFormNG2 on either ...
    • From database with custom SQL

      InterFormNG2 can with the input type: From database with custom SQL monitor a table and process all records in this table, that fits a specific selection. You can consider to combine this with the workflow component, Database SQL update in order to ...
    • ActiveMQ send message

      To send a message to an activeMQ as part of a workflow, insert a new component at the point in the workflow where you want to send the message. From the "Advanced" components tab select "ActiveMQ send message" to send a message with the workflow ...
    • IBM MQ send message

      To send a message to an IBM MQ as part of a workflow, insert a new component at the point in the workflow where you want to send the message. From the "Advanced" components tab select "IBM MQ send message" to send a message to an IBM MQ. Note, that ...
    • System log

      For normal use the job logs should be used in order to check up on processing of files, but in some rare cases you might need to look into the system log of InterFormNG2. To access the system log you need to sign on as a system admin. As default the ...