--
You received this message because you are subscribed to the Google Groups "Play framework dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framework-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To turn the question around, what would it take to obviate the need for a logback.xml in the first place?
First of all, excuse my ignorance -- is play hardwired to use logback for its logging?
Anyway wouldn't it be ideal if the Play experience didn't include dealing with old-fashioned xml files?
So what would it take --- how complex is the xml configuration format, and what can it do that hocon can't do? And how hard is it to install a new configuration mechanism into logback?
I admit I haven't looked into any of the relevant code -- I'm writing this email offline so I can't now either. If someone that's familiar could fill me in on the technical details, I would really appreciate it.
Logback preferred format is groovy actually. It supports XML as a second option but will resolve groovy config first.
In theory, most logging should go through the slf4j api with logback as the implementation.
Most likely logback is only explicitly referenced where the logging subsystem is started. With 2.4 it should be fairly easy to switch to another implem ...
I am not sure if it would be possible p do complex configuatio of the logging system through application.conf
To turn the question around, what would it take to obviate the need for a logback.xml in the first place?
First of all, excuse my ignorance -- is play hardwired to use logback for its logging?
Anyway wouldn't it be ideal if the Play experience didn't include dealing with old-fashioned xml files?
So what would it take --- how complex is the xml configuration format, and what can it do that hocon can't do? And how hard is it to install a new configuration mechanism into logback?
On 14 April 2015 at 16:14, Naftoli Gugenheim <nafto...@gmail.com> wrote:To turn the question around, what would it take to obviate the need for a logback.xml in the first place?
First of all, excuse my ignorance -- is play hardwired to use logback for its logging?
Yes it is. Play is a full stack framework, it provides everything out of the box. Requiring the user to select a logging framework is not an option. That doesn't mean we can't make it possible to plugin different logging frameworks, but by default, the user experience should be that they don't have to worry, they can let the framework select it for you.
Anyway wouldn't it be ideal if the Play experience didn't include dealing with old-fashioned xml files?
The fact that XML is old (and it's not that old, Javascript is older than XML) is not a valid reason not to use it. Does it cause pain to use it in this instance? I think the answer is no. The only reason I can see to not use it is because it's not cool, and I would think the Play community is a little more mature than other communities that make decisions based on fads.
So what would it take --- how complex is the xml configuration format, and what can it do that hocon can't do? And how hard is it to install a new configuration mechanism into logback?
The problem with a new configuration mechanism is that it's unfamiliar, and something additional that we have to maintain and support. If someone has having difficulty configuring logback, and they're not using a standard configuration mechanism, then the wealth of resources held by google won't be useful to them, the logback maintainers won't be interested in helping them on their mailing list because they're using something custom for Play, etc.
On Tue, Apr 14, 2015 at 2:29 AM James Roper <ja...@typesafe.com> wrote:On 14 April 2015 at 16:14, Naftoli Gugenheim <nafto...@gmail.com> wrote:To turn the question around, what would it take to obviate the need for a logback.xml in the first place?
First of all, excuse my ignorance -- is play hardwired to use logback for its logging?
Yes it is. Play is a full stack framework, it provides everything out of the box. Requiring the user to select a logging framework is not an option. That doesn't mean we can't make it possible to plugin different logging frameworks, but by default, the user experience should be that they don't have to worry, they can let the framework select it for you.I'm confused -- is anything hardwired to logback only, or is it just an out-of-the-box default choice than is possible to override?What specifically uses logback by default? Logging that Play does? Play's logging helpers? (Sorry if this is getting out of scope for -dev.)