db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Watzek <mwa.t...@spree.de>
Subject Patch for JIRA JDO-33
Date Thu, 09 Jun 2005 16:36:37 GMT

JIRA JDO-33 suggests to print the TCK output to a log file in addition 
to standard out. The attached patch solves this issue.

The log file is created in directory "target/logs". If this directory 
does not exist at the time the TCK is started, then it is created. The 
file name pattern for the log file is "TCKLog-<currentDate>.txt". The 
format of <currentDate> is "yyyyMMdd-HHmmss".

You can switch off printing to a log file if you set the system property 
"noLogFile" to "true". In this case you'll only have console output. 
Otherwise, System.out and System.err are redirected to a log file and to 
the console.

Because the patch redirects the console output, you'll see also logging 
output in the log file. For this reason, we decided not to log 
exceptions in case of failures and/or errors using fatal/error log 
level. Instead, those exceptions are logged using level info. Thus, if 
you want to see exceptions at once with the test result, then please set 
the log level of the TCK to info. By default, it is set to error and you 
see exceptions only at the end of the TCK output after the output of all 

Michael Watzek                  Tech@Spree Engineering GmbH
mailto:mwa.tech@spree.de        Buelowstr. 66
Tel.:  ++49/30/235 520 36       10783 Berlin - Germany
Fax.:  ++49/30/217 520 12       http://www.spree.de/

View raw message