public static void markOpenfireLogFile(String username) {
        String message = getMarkMessage(username);
        File logFile = new File(Log.getLogDirectory(), "openfire.log");

        try(FileWriter fw = new FileWriter(logFile, true);
            PrintWriter out = new PrintWriter(fw))
        {
            out.println(message);
        } catch (IOException e) {
            e.printStackTrace(); // Writing it to the logfile feels wrong, as we're processing the logfile here.
        }
    }
Openfire makes use of a logging facade (slf4j) to manage its log output. The
facade is backed up by Log4j by default. This class provides utility methods.
<p>
Additionally, this class provides methods that can be used to record logging
statements. These methods are exact duplicates of the previous Log
implementation of Openfire and are kept for backwards-compatibility (the are
deprecated). These methods will delegate logging functionality to slf4j.
Instead of these methods, slf4j logging functionality should be used
directly.

@author Guus der Kinderen, guus.der.kinderen@gmail.com
@see <a href="http://www.slf4j.org/">http://www.slf4j.org/</a>
xmppserver/src/main/java/org/jivesoftware/util/Log.java