[OPENAM-17339] Legacy AM debug logger not mentioned how to do in AM 7 Created: 26/Jan/21  Updated: 27/Jan/21

Status: Open
Project: OpenAM
Component/s: debug logging
Affects Version/s: 7.0.0, 7.0.1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: C-Weng C Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: EDISON
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to OPENAM-17340 AM7 lack of integration for logger fr... Open
Rank: 1|i03fj3:
Support Ticket IDs:

 Description   

Bug description

It is mentioned that it was intended that one can remove logback-classic-1.2.3.jar and replace this with openam-legacy-debug-slf4j-7.0.x.jar to get back the old AM6.x logging. However the following is missed

1. No documentation exists
2. The binary openam-legacy-debug-slf4j-*.jar is no where to be found

Why is this needed? Because debugconfig.properties will not work with the new logback and if one want to use the old debug logger

Expectation:

  • A mechanisms needed to provide openam-legacy-debug-slf4j-*.jar
  • Documentation

How to reproduce the issue

  • Set up debugconfig.properties as in 6.5 documentation
  • Rotation does not work.
  • The constraint is that one wants to old AM debug logging files to have seemless upgrade.
Expected behaviour
Get back AM 6.5.x behaviour (log files and rotation capabilities)
Current behaviour
Lost capability to use logback but this at this point one may need to do undocumented logging and tedious mapping to get back the old AM log files.

Work around

Custom unsupported logback. <--- KEY POINT (UNSUPPORTED)

Code analysis

AMSetupServlet.java
... and lack of the new debug slf4j provider

Generated at Sun May 09 07:59:12 UTC 2021 using Jira 8.16.0#816000-sha1:a455b91378454416b49bbc88d03e653cb9815ed5.