HowTo Log DB queries

From Lift

Jump to: navigation, search

In Boot.scala, add:


DB.addLogFunc((query, len) => Log.info("The query: "+query+" took"+len+" milliseconds"))

That'll log queries to the Logger.

Personal tools