Logging options for Slick

前端 未结 8 1745
抹茶落季
抹茶落季 2020-12-16 13:33

I\'m createing a Play 2.1 app, in which I have decided to use Slick for database interaction.
However I can\'t find documentation about how to configure/enable logging f

8条回答
  •  悲哀的现实
    2020-12-16 13:55

    I've tried to integrate the logback.xml with the Slick logger but it doesn't work.

    Modifing logger.xml (get it the latest version from GitHub based on your version) and adding the slick logger, instead, works.

        
      
    
      
         ${application.home}/logs/application.log
         
           %date - [%level] - from %logger in %thread %n%message%n%xException%n
         
       
    
      
        
          %coloredLevel %logger{15} - %message%n%xException{5}
        
      
    
      
      
    
      
      
      
      
      
      
    
      
        
        
      
    
    
    

提交回复
热议问题