Skip to content

Commit 05b1d6c

Browse files
committed
remove old style (and unused) log for velocity
1 parent 81c2ec3 commit 05b1d6c

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

org/w3c/css/index/IndexGenerator.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
import java.io.OutputStreamWriter;
2323
import java.net.URI;
2424
import java.net.URISyntaxException;
25-
import java.text.SimpleDateFormat;
26-
import java.util.Date;
2725
import java.util.HashMap;
2826
import java.util.Iterator;
2927

@@ -90,10 +88,8 @@ public static synchronized void generatesIndex(boolean servlet) {
9088
*/
9189
Velocity.setProperty(Velocity.FILE_RESOURCE_LOADER_PATH, path);
9290
Velocity.addProperty(Velocity.FILE_RESOURCE_LOADER_PATH, path + "../../../../");
93-
Velocity.setProperty(Velocity.RUNTIME_LOG,
94-
"velocity-" + new SimpleDateFormat("yyyy-MM-dd_HHmm").format(new Date()) + ".log");
95-
96-
Velocity.setProperty(Velocity.RUNTIME_LOG_LOGSYSTEM_CLASS, "org.apache.velocity.runtime.log.AvalonLogChute");
91+
// Velocity.setProperty(Velocity.RUNTIME_LOG_NAME,
92+
// "velocity-" + new SimpleDateFormat("yyyy-MM-dd_HHmm").format(new Date()) + ".log");
9793
Velocity.init();
9894
if (!new File(path + template_name).exists()) {
9995
template_name = template_name;

org/w3c/css/index/TranslationTableGenerator.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@
2222
import java.io.OutputStreamWriter;
2323
import java.net.URI;
2424
import java.net.URISyntaxException;
25-
import java.text.SimpleDateFormat;
2625
import java.util.ArrayList;
2726
import java.util.Collections;
2827
import java.util.Comparator;
29-
import java.util.Date;
3028
import java.util.HashMap;
3129
import java.util.Iterator;
3230
import java.util.Locale;
@@ -79,10 +77,10 @@ public static synchronized void generateTable() {
7977
path = new URI(path).getPath();
8078
Velocity.setProperty(Velocity.FILE_RESOURCE_LOADER_PATH, path);
8179
Velocity.addProperty(Velocity.FILE_RESOURCE_LOADER_PATH, path + "../css/");
82-
Velocity.setProperty(Velocity.RUNTIME_LOG,
83-
"velocity-" + new SimpleDateFormat("yyyy-MM-dd_HHmm").format(new Date()) + ".log");
84-
85-
Velocity.setProperty(Velocity.RUNTIME_LOG_LOGSYSTEM_CLASS, "org.apache.velocity.runtime.log.AvalonLogChute");
80+
// Velocity.setProperty(Velocity.RUNTIME_LOG,
81+
// "velocity-" + new SimpleDateFormat("yyyy-MM-dd_HHmm").format(new Date()) + ".log");
82+
//
83+
// Velocity.setProperty(Velocity.RUNTIME_LOG_LOGSYSTEM_CLASS, "org.apache.velocity.runtime.log.AvalonLogChute");
8684
Velocity.init();
8785

8886
Template tpl = Velocity.getTemplate(template_name, "UTF-8");

0 commit comments

Comments
 (0)