Dynamic Log Level in TIBCO BW 6

How many times had you need to write log traces with different log levels? The anwser will probably be every time you develop a BusinessWorks process. But, how can you do this trick in the new TIBCO BW 6? Ok, let’s go for it.

The Log activity (formerly known as Write To Log in TIBCO BW5) has incorporated two new attributes in the input schema:

  • LoggerName: This parameter value is the logger name will be used for this trace
  • LogLevel: This parameter value is the level for this trace.

TIBCOBusinessStudio_2016-03-18_23-34-12

You can also use the Configuration panel as you can do on TIBCO BW 5 to define the same parameters with static options.

TIBCOBusinessStudio_2016-03-18_23-35-12

The advantage of this *new* way (Really, it is not new, because you also can do this with the TIBCO AMX Service Grid solution.. so, this implementation has at least 6 years 🙂 ) you can do it without a redundant group of Write to Log activities and transitions filtering with an input parameters.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s