Build: #2160 was successful Changes by Dan Caseley <dan@caseley.me.uk> and Guus der Kinderen
Code commits
Openfire (master)
-
Dan Caseley <dan@caseley.me.uk> f4a1aac5bdbced5eea1e2db32bc821bfc9dad323
Merge pull request #1874 from guusdk/OF-1840_logfile-and-viewer-adjustments
OF-1840 & OF-2286: Modification of logviewer -
Guus der Kinderen 5afa1d8da672afac56c47b345b95f73fe5ea0f93
OF-1840: Add jansi config to (windows) launchers
Windows natively does not support ANSI control characters. To enable this, a system property needs to be configured that prevents bypassing of a library that ships with log4j.- distribution/src/bin/openfire.bat (version 5afa1d8da672afac56c47b345b95f73fe5ea0f93)
- distribution/src/installer/openfire.install4j (version 5afa1d8da672afac56c47b345b95f73fe5ea0f93)
-
Guus der Kinderen c990225ac5a1ddb275fa75f30b85217636ddc9da
OF-2286: Allow log file to be downloaded from Admin Console
By looking at the code, somewhere in 2004 @billjive anticipated that we'd do this some glorious day in the future. Let that day be today!- i18n/src/main/resources/openfire_i18n.properties (version c990225ac5a1ddb275fa75f30b85217636ddc9da)
- xmppserver/src/main/webapp/logviewer.jsp (version c990225ac5a1ddb275fa75f30b85217636ddc9da)
-
Guus der Kinderen 09388c012cf65dcbf1fcad8a475329811e23ffb6
OF-1840: Change log file usage
This drops the separation of logged message over different log files by log level. Effectively, this removes all but the 'all.log' file, renaming that to Openfire log.
A drop-down selection has been added, to retain functionality for those that desire to look at only a singular severity of logged messages.
Additionally, this commit adds ANSI-based color to the log level as printed on each line. This provides a very helpful visual hint, drawing attention to the more important log lines.
This change introduces ANSI control characters to the log file. Native readers often can handle these (for example, 'less' has the -R option for this). It's good to remember that the log configuration can be easily modified by end users, by modifying the log4j2.xml configuration file with their own preferences (which can be used to undo this change).
Corresponding changes have been made to the admin console. As the default ANSI coloring as applied by Log4j2 works best on a dark background, the background of the displayed log is changed to be dark.- distribution/src/resources/log4j2.xml (version 09388c012cf65dcbf1fcad8a475329811e23ffb6)
- i18n/src/main/resources/openfire_i18n.properties (version 09388c012cf65dcbf1fcad8a475329811e23ffb6)
- i18n/src/main/resources/openfire_i18n_de.properties (version 09388c012cf65dcbf1fcad8a475329811e23ffb6)
- i18n/src/main/resources/openfire_i18n_nl.properties (version 09388c012cf65dcbf1fcad8a475329811e23ffb6)
- xmppserver/pom.xml (version 09388c012cf65dcbf1fcad8a475329811e23ffb6)
- xmppserver/src/main/java/org/jivesoftware/util/Log.java (version 09388c012cf65dcbf1fcad8a475329811e23ffb6)
- xmppserver/src/main/webapp/log.jsp (version 09388c012cf65dcbf1fcad8a475329811e23ffb6)
- xmppserver/src/main/webapp/logviewer.jsp (version 09388c012cf65dcbf1fcad8a475329811e23ffb6)