trafodion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Narendra Goyal <narendra.go...@esgyn.com>
Subject RE: How to use the Java logging in the Executor?
Date Thu, 03 Dec 2015 01:19:24 GMT
To turn on logging:

Config File: $MY_SQROOT/conf/log4j.hdfs.config

The log level for Trafodion SQL code (Java) is set as per the following
directive (defaults to ERROR) in the above file:
log4j.logger.org.trafodion.sql=ERROR

So, if you change the log level to TRACE, then SQL processes would start
logging.
TRACE, DEBUG, INFO...

One needs to know the pid of the SQL process as the logs are written to  the
file:

$MY_SQROOT/logs/master_exec_<nid>_<pid>.log

On a workstation, the nid would be 0.

E.g.: master_exec_0_20610.log

Thanks,
-Narendra

-----Original Message-----
From: Dave Birdsall [mailto:dave.birdsall@esgyn.com]
Sent: Wednesday, December 2, 2015 5:07 PM
To: dev@trafodion.incubator.apache.org
Subject: How to use the Java logging in the Executor?

Hi,



I’m debugging a problem in the Trafodion compiler. It calls a Java method
via executor/HBaseClient_JNI.cpp. The method in question has extensive
logging code. I’d like to take advantage of that.



How do I turn on the logging? And where is the log written to?



Thanks,



Dave

Mime
View raw message