Logback configuration file

121 views
Skip to first unread message

Aharon Twizer

unread,
Jul 11, 2013, 8:44:13 AM7/11/13
to play-fr...@googlegroups.com
Hi Guys,

I'm new to Play framework :)

I have a question regarding how to use logback configuration file:

I've created logger.xml file under conf folder, but the conf folder is not part of the package being created.

It's also not part of the classpath in the start script, and therefore I don't see my logs.

What am I doing wrong? Should the conf folder also be deployed and mentioned in the classpath?

Thanks,



volker...@eligotech.com

unread,
Jul 12, 2013, 2:01:27 AM7/12/13
to play-fr...@googlegroups.com
I Am using Play 2.1 and for me the log-config ends up in the jar-file of the play-application and is therefore available on the classpath. According to the doc the file has to be named application-logger.xml, though. If you want to have it outside of jar-files, you can point to a different file by using system-properties:
start -Dlogger.file=/opt/prod/logger.xml

Aharon Twizer

unread,
Jul 15, 2013, 8:58:07 AM7/15/13
to play-fr...@googlegroups.com
It worked.
Thanks!
Reply all
Reply to author
Forward
0 new messages