Search code examples
playframeworkframeworksplayframework-1.x

When I can find log file in the play?


In which folder is a file with the log? Application mode is DEV.

Play version is 1.3.1.


Solution

  • You need to create a custom file as conf/log4j.properties which includes:

    log4j.rootLogger=Rolling
    
    # Rolling files
    log4j.appender.Rolling.File=/var/log/application.log //This is your log-file path
    

    After that you have to refer this file from conf/application.conf as:

    application.log.path=/log4j.properties