Write logging-Information

Hi,

is there a way to write logging-informations to the "MPS Messages" - View when transforming models? (From within Constraints, Behavior etc.)

Thx,

Mirko

2 comments
Comment actions Permalink

Mirko,

Yes, we have a logginig language for such purposes. It can be used everywhere to log information to MessagesView.

To use it:

1) import the language: press ctrl+L and enter "logging", select "jetbrains.mps.baseLanguage.logging" (you can also import a language using model properties dialog)

2) use "info","warn" and "error" statements from this language. Do not forget to look in inspector while standing on these statements - there are some additional options there.

Good luck,

Mihail

0
Comment actions Permalink

Hi Mihail,

thank you!

Mirko

0

Please sign in to leave a comment.