logname base discriminator in scala.