RosettaCodeData/Task/Write-to-Windows-event-log/Scala/write-to-windows-event-log.scala
2018-06-22 20:57:24 +00:00

11 lines
375 B
Scala

object RegisterWinLogEvent extends App {
import sys.process._
def eventCreate= Seq("EVENTCREATE", "/T", "SUCCESS", "/id", "123", "/l", "APPLICATION", "/so", "Scala RegisterWinLogEvent", "/d", "Rosetta Code Example" ).!!
println(eventCreate)
println(s"\nSuccessfully completed without errors. [total ${scala.compat.Platform.currentTime - executionStart} ms]")
}