How to get log output in Scala compiler plugin?

From the help of the scala compiler, I would have thought that “-Xprint: MyPhase” would do just that, but despite the fact that the plug-in does this work, and that I know that it does log output, I still do not see a way out skalyasy when you run it. All I see is "[[syntax trees at the end of MyPhase]] ..." Since logging seems to be simply related to the call log ("..."), I cannot imagine what I would do wrong in the code that produces the log output. As an ugly job, I can still use System.out.println (), but if there is a log () method, then I have to assume that it actually has to do something ...

+4
source share
1 answer

-Ylog:<phase>

Use scalac -Y to see all the options for "private".

+4
source

All Articles