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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.