I have converted this code from Java to Scala, and I need reviews.  This works fine, but I am sure that something is wrong with this coding pattern.package modelsimport org.apache.log4j.ConsoleAppenderimport org.apache.log4j.Levelimport org.apache.log4j.Loggerimport org.apache.log4j.PatternLayoutimport org.apache.log4j.RollingFileAppenderimport me.prettyprint.cassandra.serializers.StringSerializerobject LogFile extends CassandraConnection {  val loger = Logger.getRootLogger()  def exceptionLogs(qName: String, data: String) {    //data is json String    val logg = Logger.getLogger(qName + - + data)    loger.setLevel(Level.ERROR)    val layout = new PatternLayout([%t] %-5p %c %x - %m %d{ISO8601} %n)    loger.addAppender(new ConsoleAppender(layout))    try {      val fileAppender = new RollingFileAppender(layout, QLog.txt)      loger.addAppender(fileAppender)      logg.error()      loger.removeAppender(fileAppender)    } catch {      case e: Exception =>        println(e)        logg.error();    }  }}
Apache log4j in play framework
scala;logging