Hi @shubhamaem ,
This issue can occur due to several reasons in AEM’s Apache Sling Logging Logger Configuration. Here are some potential causes and solutions:
Possible Causes & Fixes
1. Missing Permissions
Ensure that your user has sufficient permissions to modify OSGi configurations:
- Try updating the logger as an admin user.
- Check permissions under /system/console/configMgr.
2. Browser Cache Issues
Sometimes, browser caching can cause UI elements not to render properly:
- Try opening the OSGi Console (/system/console/configMgr) in Incognito Mode.
- Clear your browser cache and reload the page.
3. AEM OSGi Console UI Issue
There could be a UI bug where the input box is missing:
- Directly edit the configuration via CRXDE at:
/apps/system/config/org.apache.sling.commons.log.LogManager.factory.config-xxxx.xml
- Add the org.apache.sling.commons.log.names property manually.
4. OSGi Configuration Not Persisting
If clicking Save doesn’t work, the configuration might not be persisting due to a repository issue:
- Restart AEM (stop and start the instance).
- Check error logs (logs/error.log) for any persistence errors.
5. Check for Configuration Conflicts
If another configuration already exists with the same Persistent Identifier (PID), it might override your changes:
- Go to /system/console/configMgr and search for org.apache.sling.commons.log.LogManager.factory.config.
- Delete duplicate or conflicting configurations and reapply your settings.
Final Workaround (If UI Is Not Working)
If the UI still doesn’t allow adding a logger, try configuring it via OSGi Console API:
1. Go to:
http://<AEM_HOST>:<PORT>/system/console/configMgr/org.apache.sling.commons.log.LogManager.factory.config
2. Manually add a new logger configuration.
3. Click Save and restart AEM.
Regards,
Amit Vishwakarma