]> gerrit.simantics Code Review - simantics/platform.git/blob - Logging.scl
e8446dc3c28e80c7d6782f2c208c896776778f7a
[simantics/platform.git] / 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