[lsi][launcher] Use human readable timestamp for logging

Change-Id: I625b60c3d8d2db26751010954762fc64b134a436
Signed-off-by: akosyakov <anton.kosyakov@typefox.io>
This commit is contained in:
akosyakov 2016-06-02 16:09:40 +02:00
parent 2f9a805926
commit 6643088e2b

View file

@ -18,6 +18,7 @@ import java.io.InputStream
import java.io.OutputStream
import java.io.PrintStream
import java.io.PrintWriter
import java.sql.Timestamp
/**
* @author Sven Efftinge - Initial contribution and API
@ -62,7 +63,7 @@ class ServerLauncher {
def static redirectStandardStreams() {
System.setIn(new ByteArrayInputStream(newByteArrayOfSize(0)))
val id = ServerLauncher.name + "-" + System.currentTimeMillis
val id = ServerLauncher.name + "-" + new Timestamp(System.currentTimeMillis)
if (IS_DEBUG) {
val stdFileOut = new FileOutputStream("out-" + id + ".log")
System.setOut(new PrintStream(stdFileOut))