Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persist custom log settings over a restart #56

Open
binduwavell opened this issue Mar 6, 2017 · 1 comment
Open

Persist custom log settings over a restart #56

binduwavell opened this issue Mar 6, 2017 · 1 comment

Comments

@binduwavell
Copy link
Contributor

There are some cases where it would help if the logging specified in support tools persisted over a reboot. This could be to help debugging issues during startup or for less technical folks so they don't need to mess with log4j properties files.

@AFaust
Copy link
Contributor

AFaust commented Mar 15, 2017

Using some of the features required for #55 it should be easy to transparently persist changes made to the original Log4J configuration in a persistent file (might need to be external to temp or work directories to avoid potential deletion during restart). A special bean would need to be added to the Spring context in such a way that it directly follows initialisation of the Log4J hierarchy. This might require use of depends-on both in our bean as well as a key bean in the Alfresco startup order to force this restoration of previous runtime configuration as early as possible. Technically there should be no reason why we cant make the initialisation of the Log4J hierarchy and our restoration the first thing to be done when the Spring context starts up - it is only an oversight by Alfresco that the Log4J hierarchy isn't initialised as early as possible...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants