summaryrefslogtreecommitdiffstats
path: root/src/main/scala/cake/logger.scala
blob: 6c4a64d85e00e56cab0f20386ce1f767521210d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
package cake.logger

trait Logger {
  def log (msg: String): Unit
}

class FileLogger (val logFileName: String) extends Logger {
  def log (msg: String): Unit =
    println("writing " + msg + " to " + logFileName)
}