View Scala logs in IntelliJ Follow
Here's the link to my original question on StackOverflow
I'd like to test the Scala
code that I've just written by running small fragments of it separately in a Scala Worksheet
. What sounds like a trivial affair isn't working because:
-
After updating the code, the
Scala Worksheet
keeps running the obsolete code. I've already ticked theMake Project
checkbox and have even tried the enablingUse REPL Mode
without luck. When even a complete cycle ofsbt reload
>sbt update
>sbt clean
>sbt compile
doesn't fix the issue, I wonder what will. -
Even if I manage to fix the above issue, next thing is that I'm unaware of any possible way to view the log messages generated by
typesafe Logger
withinIntelliJ IDEA
. There might be some file where these logs are being dumped but leaving the IDE to view log file sounds less-than-ideal in 2018. The only other alternative would be to manually replace (or augment) each log line throughout my project withprintln
. Something makes me think that there's got to be a better way. TheIntelliJ
docs page for Setting Log Options isn't very helpful as it is outdated and I cannot find the same UI as shown in the screenshots over there
Here are my configurations
IDE
- IntelliJ IDEA 2017.3.4 (Community Edition)
- Build #IC-173.4548.28, built on January 30, 2018
- JRE: 1.8.0_152-release-1024-b11 x86_64
- JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
- Mac OS X 10.13.3
- Scala Plugin Version: 2017.3.11.1
Project
- Scala 2.11.11
- SBT 1.0.3
- Typesafe Scala Logging "com.typesafe.scala-logging" %% "scala-logging" % "3.7.2"
Please sign in to leave a comment.