@Override
    public boolean requiresLayout() {
        return true;
    }
Clear internal references to the writer and other variables.

Subclasses can override this method for an alternate closing behavior.
metamorphosis-client-extension/src/main/java/com/taobao/metamorphosis/client/extension/log4j/StreamAppender.java