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

0
2 comments

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

Hi Mihail,

thank you!

Mirko

0

Please sign in to leave a comment.