]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.runtime/scl/Logging.scl
Merge "Function printingToLogging redirecting print commands to logging"
[simantics/platform.git] / bundles / org.simantics.scl.runtime / scl / Logging.scl
index a781fa01fc52042705b07d2a2050cebc0b0999c6..e8446dc3c28e80c7d6782f2c208c896776778f7a 100644 (file)
@@ -1 +1,11 @@
 include "LoggingJava"
+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
+
+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