Closed aristotll closed 5 years ago
How can I ignore the trailing$ in class name? Example code:
$
import org.apache.commons.logging.{Log, LogFactory} object First { val log: Log = LogFactory.getLog(this.getClass) def main(args: Array[String]): Unit = { log.info("test") } }
The console output:
2017-10-23 23:22:27,091 [INFO -scala_.loggings.First$:17] test
I do know the class of this.getClass ends with $, but with scala_.loggings.First:17 I can jump to the specific line. So how to ignore the $?
this.getClass
scala_.loggings.First:17
How can I ignore the trailing
$
in class name? Example code:The console output:
I do know the class of
this.getClass
ends with$
, but withscala_.loggings.First:17
I can jump to the specific line. So how to ignore the$
?