我正在尝试在我的应用程序中安装BetterLogs和log4Play模块。
Log4Play似乎可以在Chrome中使用,但我似乎无法通过更好的日志来增强日志。
我通过以下方式安装/配置了模块:

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 -> *




玩干净
玩eclipsify -deps

最佳答案

您只需要在dependencies.yml文件中添加以下内容,然后在应用程序根文件夹中运行play dependencies

require:
    - play -> log4play 0.5
    - play -> betterlogs 1.0

09-05 12:22