Do we have the possibility to use groovy configuration file for logback in play?

61 views
Skip to first unread message

doc...@paradigmadigital.com

unread,
Sep 20, 2017, 7:13:50 AM9/20/17
to Play Framework
So, I know that I could implement my own LoggerConfiguration trait in order to tell what is the configuration file that I am going to use, as explained here . But I am wondering if play has any simpler way to grab a configuration file logback.groovy from the classpath and use it

Marcos Pereira

unread,
Sep 23, 2017, 3:44:10 PM9/23/17
to play-fr...@googlegroups.com
Hi,

No, we don't support logback.groovy out of the box because this implies that we need to add a dependency on Groovy itself, which is not a good default. In fact, a lot of dependencies were removed to ensure smaller app distribution packages:


Anyway, supporting logback.groovy is pretty simple. Maybe you can create and publish it as an open source module?

Best.

On Wed, Sep 20, 2017 at 8:11 AM, <doc...@paradigmadigital.com> wrote:
So, I know that I could implement my own LoggerConfiguration trait in order to tell what is the configuration file that I am going to use, as explained here . But I am wondering if play has any simpler way to grab a configuration file logback.groovy from the classpath and use it

--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framework+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/e6a346ac-229c-497e-a169-db2ca9da92ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Marcos Pereira
Software Engineer, Lightbend.com

doc...@paradigmadigital.com

unread,
Sep 24, 2017, 12:01:39 PM9/24/17
to Play Framework
Deal :)


In master I have a compatible version with 2.5 and in a different branch I wrote a version for 2.6

I have test in my projects and it works, but I haven't upload this to any repository yet


El miércoles, 20 de septiembre de 2017, 13:13:50 (UTC+2), doc...@paradigmadigital.com escribió:
Reply all
Reply to author
Forward
0 new messages