playframework / playframework/play1

please add log4j2 config to a sample project

Open
#1,442 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.6k
Forks
671
Avg merge
12d 15h
Merged PRs (30d)
1

Description

It seems log4j was upgraded to log4j2 in #1367 for play 1.7.0

So any application using oldstyle log4j.properties will/did now stop producing logfiles.
It is not clear from docu or anywhere else how to configure log4j2.
Adding a basic log4j2.xml in conf/ folder had no effect.
Maybe a change in application.conf is required? Or adding a dependency.yml entry?

May I ask you to please add a most basic working log4j2 setup to any of the projects under samples-and-tests ?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing upgrade #1367 and the projects under samples-and-tests, then inspect how conf/, application.conf, and dependency.yml are used. Add a basic working log4j2.xml configuration to a sample project so it produces logfiles, and verify the setup against the issue's configuration concern.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.