]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.runtime/scl/Logging.scl
Function printingToLogging redirecting print commands to logging
[simantics/platform.git] / bundles / org.simantics.scl.runtime / scl / Logging.scl
index 67f48ecd2538c4e92fabce9ad94c9cd84b5c87f5..e8446dc3c28e80c7d6782f2c208c896776778f7a 100644 (file)
@@ -4,4 +4,8 @@ include "LoggingMDC" as MDC
 importJava "org.slf4j.MarkerFactory" where
     // Note: this method is pure by purpose, because MarkerFactory should always return the same marker
     @JavaName getMarker
-    marker :: String -> Marker
\ No newline at end of file
+    marker :: String -> Marker
+
+importJava "org.simantics.scl.runtime.reporting.SCLReporting" where
+    "Redirects print commands to INFO level logging and printErrors to ERROR level logging."
+    printingToLogging :: (<e> a) -> <e> a
\ No newline at end of file