]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.runtime/scl/Logging.scl
Added support for creating markers and changing MDC in SCL logging
[simantics/platform.git] / bundles / org.simantics.scl.runtime / scl / Logging.scl
index a781fa01fc52042705b07d2a2050cebc0b0999c6..67f48ecd2538c4e92fabce9ad94c9cd84b5c87f5 100644 (file)
@@ -1 +1,7 @@
 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
\ No newline at end of file