typesafehub/scalalogging — pull request #12 by danielkroeni (2012-08-21 08:02:30+00:00)
Title: Splicing Throwables

Hi Heiko

I just observed that the following snippet leads to a compile error:

```scala
package com.typesafe.scalalogging

object MacroCompileTest extends Logging {
val reporter = (t: Throwable) => logger.error("msg", t)
}
```

```
[error] /home/dk/fhnw/projects/finnova/git/scalalogging/scalalogging-slf4j-test/src/test/scala/com/typesafe/scalalogging/MacroCompileTest.scala:4: Macro expansion contains free term variable t defined by errorT in Logger.scala:115:57. Have you forgotten to use splice when splicing this variable into a reifee? If you have troubles tracking free term variables, consider using -Xlog-free-terms
[error] val reporter = (t: Throwable) => logger.error("msg", t)
[error] ^
[error] one error found
[error] (scalalogging-slf4j-test/test:compile) Compilation failed
[error] Total time: 6 s, completed Aug 21, 2012 9:44:41 AM
```

I just added the required 'splice' calls and some tests.

Thanks for making your library official!
Daniel