Author: sebb
Date: Fri Nov 23 16:54:14 2007
New Revision: 597775
URL: http://svn.apache.org/viewvc?rev=597775&view=rev
Log:
The JMeter log file name is formatted as a SimpleDateFormat (applied to the
current date) if it contains paired single-quotes, .e.g.
'jmeter_'yyyyMMddHHmmss'.log'
Modified:
jakarta/jmeter/trunk/docs/changes.html
jakarta/jmeter/trunk/docs/usermanual/get-started.html
jakarta/jmeter/trunk/src/jorphan/org/apache/jorphan/logging/LoggingManager.java
jakarta/jmeter/trunk/xdocs/changes.xml
jakarta/jmeter/trunk/xdocs/usermanual/get-started.xml
Modified: jakarta/jmeter/trunk/docs/changes.html
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/docs/changes.html?rev=597775&r1=597774&r2=597775&view=diff
==============================================================================
--- jakarta/jmeter/trunk/docs/changes.html (original)
+++ jakarta/jmeter/trunk/docs/changes.html Fri Nov 23 16:54:14 2007
@@ -220,7 +220,8 @@
<p >
The hostname can now be saved in CSV and XML output files.
-Errors only flag is now supported when loading XML and CSV files.
+New "Successes only" option added when saving result files.
+Errors / Successes only option is now supported when loading XML and CSV
files.
</p>
<p >
@@ -574,6 +575,11 @@
</li>
+
<li >
+ The JMeter log
file name is formatted as a SimpleDateFormat (applied to the current date) if
it contains paired single-quotes, .e.g. 'jmeter_'yyyyMMddHHmmss'.log'
+ </li>
+
+
</ul>
<h4 >
Non-functional
Improvements
@@ -2061,6 +2067,7 @@
<li >
The
Post-Processor "Save Responses to a File" now saves the generated file name
with the
+
sample, and the file name can be included in the sample log file.
</li>
Modified: jakarta/jmeter/trunk/docs/usermanual/get-started.html
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/docs/usermanual/get-started.html?rev=597775&r1=597774&r2=597775&view=diff
==============================================================================
--- jakarta/jmeter/trunk/docs/usermanual/get-started.html (original)
+++ jakarta/jmeter/trunk/docs/usermanual/get-started.html Fri Nov 23 16:54:14
2007
@@ -1165,6 +1165,12 @@
Exit the remote servers at end of test (non-GUI)
</pre>
+
<p >
+
+Note: the JMeter log file name is formatted as a SimpleDateFormat (applied to
the current date)
+if it contains paired single-quotes, .e.g. 'jmeter_'yyyyMMddHHmmss'.log'
+
+ </p>
</blockquote>
</td></tr>
<tr><td><br></td></tr>
Modified:
jakarta/jmeter/trunk/src/jorphan/org/apache/jorphan/logging/LoggingManager.java
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/jorphan/org/apache/jorphan/logging/LoggingManager.java?rev=597775&r1=597774&r2=597775&view=diff
==============================================================================
---
jakarta/jmeter/trunk/src/jorphan/org/apache/jorphan/logging/LoggingManager.java
(original)
+++
jakarta/jmeter/trunk/src/jorphan/org/apache/jorphan/logging/LoggingManager.java
Fri Nov 23 16:54:14 2007
@@ -22,6 +22,8 @@
import java.io.IOException;
import java.io.PrintWriter;
import java.io.Writer;
+import java.text.SimpleDateFormat;
+import java.util.Date;
import java.util.Iterator;
import java.util.Properties;
@@ -180,6 +182,15 @@
* creating the file, then it uses System.out.
*/
private static Writer makeWriter(String logFile, String propName) {
+ // If the name contains at least one set of paired
single-quotes, reformat using DateFormat
+ final int length = logFile.split("'",-1).length;
+ if (length > 1 && length %2 == 1){
+ try {
+ SimpleDateFormat df = new
SimpleDateFormat(logFile);
+ logFile = df.format(new Date());
+ } catch (Exception ignored) {
+ }
+ }
Writer wt;
isWriterSystemOut = false;
try {
Modified: jakarta/jmeter/trunk/xdocs/changes.xml
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/changes.xml?rev=597775&r1=597774&r2=597775&view=diff
==============================================================================
--- jakarta/jmeter/trunk/xdocs/changes.xml (original)
+++ jakarta/jmeter/trunk/xdocs/changes.xml Fri Nov 23 16:54:14 2007
@@ -94,7 +94,8 @@
<p>
The hostname can now be saved in CSV and XML output files.
-Errors only flag is now supported when loading XML and CSV files.
+New "Successes only" option added when saving result files.
+Errors / Successes only option is now supported when loading XML and CSV
files.
</p>
<p>
@@ -197,6 +198,7 @@
<li>Proxy spoofing can now use RE matching to determine which urls to spoof
(useful if images are not https)</li>
<li>Proxy spoofing now drops the default HTTPS port (443) when converting
https: links to http:</li>
<li>Add Successes Only logging and display</li>
+<li>The JMeter log file name is formatted as a SimpleDateFormat (applied to
the current date) if it contains paired single-quotes, .e.g.
'jmeter_'yyyyMMddHHmmss'.log'</li>
</ul>
<h4>Non-functional Improvements</h4>
Modified: jakarta/jmeter/trunk/xdocs/usermanual/get-started.xml
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/usermanual/get-started.xml?rev=597775&r1=597774&r2=597775&view=diff
==============================================================================
--- jakarta/jmeter/trunk/xdocs/usermanual/get-started.xml (original)
+++ jakarta/jmeter/trunk/xdocs/usermanual/get-started.xml Fri Nov 23 16:54:14
2007
@@ -378,6 +378,10 @@
-X, --remoteexit
Exit the remote servers at end of test (non-GUI)
</pre>
+<p>
+Note: the JMeter log file name is formatted as a SimpleDateFormat (applied to
the current date)
+if it contains paired single-quotes, .e.g. 'jmeter_'yyyyMMddHHmmss'.log'
+</p>
</subsection>
</section>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]