I am trying to install BetterLogs and log4Play modules in my application.
Log4Play seems to work in chrome but I don’t seem to be able to enhance the logs with better logs.
I installed/configured the modules with the following:
play install betterlogs play install log4play
Added this to the dependencies.yml
require:
- play -> log4play 0.5
- play -> betterlogs 1.0
and this to my application.conf
module.log4play=${play.path}/modules/log4play-0.5
module.betterlogs=${play.path}/modules/betterlogs-1.0
betterlogs.prefix=[%relativeFile:%line] %method() ::
Am I doing something wrong in the dependency declaration?
Update: Fixed by doing the following:
- removed the modules entries from the application.conf
- ran play dependencies with the following dependecies.yml
require:
- play -> log4play 0.5
- play -> betterlogs 1.0
- provided -> mylib 1.0
repositories:
- provided:
type: local
artifact: "${application.path}/jar/[module]-[revision].jar"
contains:
- provided -> *
- play clean
- play eclipsify -deps
You just need to add the following in dependencies.yml file and run
play dependenciesin your application root folder.