Skip to content

tzimisce012/play-logback-groovy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Play-Logback-Groovy

This is a module that allows you to configure your logback logger with a groovy script instead of a xml file. By default, play just allow you to use xml to avoid the inclusion of the groovy dependency.

Usage

You have add this dependency to your project:

//for play 2.5
libraryDependencies += "com.github.tzimisce012" %% "play-logback-groovy" % "0.2.5" 
//for play 2.6
libraryDependencies += "com.github.tzimisce012" %% "play-logback-groovy" % "0.2.6" 

Also, you will have to disable the PlayLogback module as explained here

lazy val root = (project in file("."))
  .enablePlugins(PlayScala)
  .disablePlugins(PlayLogback)

Now you can put your logback.groovy file in your conf folder. Also, you still can use the xml configuration with this module enabled.

About

Module for playframework which allow to configure logback with groovy configuration files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages