cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community email notifications are disrupted. While we are working to resolve, please check on your favorite boards regularly to keep up with your conversations and new topics.

Debug logging during workflow script

RFS
11-Garnet
11-Garnet

Debug logging during workflow script

Is there a mechanism during workflow scripting where I can use the log level to control when they show?

 

I currently use System.out.println statements to get messages written in the logs while debugging new workflow behavior, and then rip it out when it's done and ready for production release.  I would rather leave it in and turn it on or off with log levels.  What's the mechanism I should use?

1 ACCEPTED SOLUTION

Accepted Solutions
HelesicPetr
22-Sapphire I
(To:RFS)

Hi @RFS 

You can use log4j logging

 

org.apache.logging.log4j.Logger logger = wt.log4j.LogR.getLogger("com.ext.MyApplication");
logger.debug("error message");
logger.info("error message");
logger.trace("error message");
logger.error("error message");

 

 

PetrH

View solution in original post

1 REPLY 1
HelesicPetr
22-Sapphire I
(To:RFS)

Hi @RFS 

You can use log4j logging

 

org.apache.logging.log4j.Logger logger = wt.log4j.LogR.getLogger("com.ext.MyApplication");
logger.debug("error message");
logger.info("error message");
logger.trace("error message");
logger.error("error message");

 

 

PetrH

Top Tags