scala - Change Logback logging in Play standalone -


when create scala play web application, play generates conf/logback.xml file allows me configure how application logs.

i created scala play standalone application , when include slick statements following in console:

21:46:04.811 [asyncexecutor.default-16] debug slick.jdbc.jdbcbackend.statement - preparing statement: insert report_data (cert,repdte,p3gtypar,p3gty,p3gtygnm,p9gtypar,p9gty,p9gtygnm,nagtypar,nagty,nagtygnm) values (5352,'2015-12-31',0,0,0,0,0,0,0,0,0) 21:46:04.811 [asyncexecutor.default-16] debug slick.jdbc.jdbcbackend.benchmark - execution of prepared statement took 43µs 21:46:04.811 [asyncexecutor.default-16] debug slick.jdbc.statementinvoker.result - 1 rows affected 21:46:04.811 [main] debug slick.backend.databasecomponent.action - #1: [fused] astry 

there's no lockback file in scala standalone. how change logging options?

add following dependency in build.sbt

"org.slf4j" % "slf4j-nop" % “1.6.4"

and add slick logger setting below logback.xml

<logger name="slick.jdbc" level="error" />


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -