How to use slf4j inside script task?

Solution Verified - Updated -

Issue

Are there any examples on how to use log4j or slf4j inside a Script Task? Currently System.out.println() statements are being used for debugging, ideally, they should be replaced by standard logger API.

Environment

  • Red Hat JBoss BPM Suite, BRMS
    • 5.3.x
    • 6
  • Red Hat Process Automation Manager
    • 7
  • Red Hat Decision Manager
    • 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content