transaction {
squeryl.Session.currentSession.setLogger(println())
...
}
My code is littered with SQL log statements :)
Thx,
Ravi
You can set it in the session factory :
SessionFactory.concreteFactory = Some(
()=> {
val s = Session.create(java.sql.DriverManager.getConnection("..."),new PostgreSqlAdapter)
s.setLogger(..)
s
}
)
then you only need to set it once...
ML