changeset 1424:63d4836a377c

FileLog.java: path to log is printed to console, last colon removed
author Jiri Vanek <jvanek@redhat.com>
date Thu, 11 May 2017 13:20:34 +0200
parents a75145805b3f
children 4c81c2172cac
files ChangeLog netx/net/sourceforge/jnlp/util/logging/FileLog.java
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu May 11 12:56:46 2017 +0200
+++ b/ChangeLog	Thu May 11 13:20:34 2017 +0200
@@ -1,6 +1,6 @@
 2017-05-11  Jiri Vanek <jvanek@redhat.com>
 
-	* netx/net/sourceforge/jnlp/util/logging/FileLog.java: on windows, name of logs do not contain colons
+	* netx/net/sourceforge/jnlp/util/logging/FileLog.java: on windows, name of logs do not contain colons, path is printed to console
 
 2017-05-10  Jiri Vanek <jvanek@redhat.com>
 
--- a/netx/net/sourceforge/jnlp/util/logging/FileLog.java	Thu May 11 12:56:46 2017 +0200
+++ b/netx/net/sourceforge/jnlp/util/logging/FileLog.java	Thu May 11 13:20:34 2017 +0200
@@ -77,7 +77,7 @@
         }
     }
 
-    public static final SimpleDateFormat fileLogNameFormatter = new SimpleDateFormat("yyyy-MM-dd_HH"+getColon()+"mm:ss.S");
+    public static final SimpleDateFormat fileLogNameFormatter = new SimpleDateFormat("yyyy-MM-dd_HH" + getColon() + "mm" + getColon() + "ss.S");
     /**"Tue Nov 19 09:43:50 CET 2013"*/
     public static final SimpleDateFormat pluginSharedFormatter = new SimpleDateFormat("EEE MMM dd HH" + getColon() + "mm" + getColon() + "ss ZZZ yyyy");
     public static final String defaultloggerName = TextsProvider.ITW + " file-logger";
@@ -108,7 +108,9 @@
     }
 
     private static String getFileName(String id) {
-        return LogConfig.getLogConfig().getIcedteaLogDir() + "itw-"+id+"-" + getStamp() + ".log";
+        String s = LogConfig.getLogConfig().getIcedteaLogDir() + "itw-" + id + "-" + getStamp() + ".log";
+        OutputController.getLogger().log("Attempting to log into: " + s);
+        return s;
     }