public void initPlugin(Config config) {

        if (archiver != null) {
            log.finer("ArchivePlugin doubly initialized");
            throw new IllegalStateException("plugin already initialized: "
                                                    + getPluginName());
        }

        // Possible to disable logarchive for testing
        String rootDir = config.get("dir", DEFAULT_DIR);
        int maxFileSize = config.getInt("maxfilesize", DEFAULT_MAXFILESIZE);
        String threadName = config.get("thread", getPluginName());
        String zip = config.get("compression", DEFAULT_COMPRESSION);

        // register log handler and flusher
        archiver = new ArchiverHandler(rootDir, maxFileSize, zip);
        server.registerLogHandler(archiver, threadName);
        server.registerFlusher(archiver);
    }
Initialize the archiver plugin
<p>
Config keys used:
<p>
maxfilesize
dir            The root of the logarchive, make sure this does
<b>not</b> end with a '/' character.
logserver/src/main/java/com/yahoo/logserver/handlers/archive/ArchiverPlugin.java