]> gerrit.simantics Code Review - simantics/platform.git/blob - 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
1 include "LoggingJava"
2 include "LoggingMDC" as MDC
3
4 importJava "org.slf4j.MarkerFactory" where
5     // Note: this method is pure by purpose, because MarkerFactory should always return the same marker
6     @JavaName getMarker
7     marker :: String -> Marker
8
9 importJava "org.simantics.scl.runtime.reporting.SCLReporting" where
10     "Redirects print commands to INFO level logging and printErrors to ERROR level logging."
11     printingToLogging :: (<e> a) -> <e> a