mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 00:38:56 +00:00
[lsi][launcher] Use human readable timestamp for logging
Change-Id: I625b60c3d8d2db26751010954762fc64b134a436 Signed-off-by: akosyakov <anton.kosyakov@typefox.io>
This commit is contained in:
parent
2f9a805926
commit
6643088e2b
1 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue