how i can add logger on bean shell ?

Confluence User - 30 Jan, 2024

 i want add logger.info or something add some value on joget.log.

know how to add logger on bean shell ?

for example

so i want in joget.log have value text so i can check my history on bean shell


beanshell;logger

2


02 Feb, 2024
confluenceUser
1
confluenceUser

You can refer to Bean Shell Programming Guide - Knowledge Base for DX 8 - Joget | COMMUNITY, it is using LogUtil to log the exception or message.

Or if you insist to use Logger, you can try the following code

import java.util.logging.Logger;
 
private static final Logger LOGGER = Logger.getLogger(this.getClass().getName());
 
LOGGER.info("This is an information message.");
LOGGER.warning("This is a warning message.");

06 Feb, 2024
confluenceUser
confluenceUser

Thanks you very much is working . is help me alot .

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print