Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
manniche
Contributor
Contributor

Write custom info messages into Job's Log from tJava

Hello,

 

I've some job's that write custom info log in console using a custom function (writeLog(message), using System.out.println()).

I've implemented project level log writing in a mysql db the messages with tWarn end tDie (of course using tLogCatcher).

 

Many messages were moved from custom function to tWarn, but I want have the possibility to use the log inside tJava.

I can't make work any opf the following solution:

1- using the code:

  tLogCatcher_1.addMessage("Procedure", "tWarn_1app", 4, "<warning description>",123);
  tLogCatcher_1Process(globalMap);

2- using the code:

org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(this.getClass());
logger.info("In your message !!!");

 

I suppose that is not possible using the standard logging system (defined in Stats & Log in Projet Properties) inside a tjava component.

 

Someone can help me?

 

Thanks, Aldo Buttini

 

Labels (3)
1 Reply
manniche
Contributor
Contributor
Author

up, please anyone can help me?

 

Thanks, Aldo