<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright The WildFly Authors
  ~ SPDX-License-Identifier: Apache-2.0
  -->

<feature-group-spec name="host-audit" xmlns="urn:jboss:galleon:feature-group:1.0">
    <feature spec="core-service.management" />
    <feature spec="core-service.management.access.audit">
        <feature spec="core-service.management.access.audit.json-formatter">
            <param name="json-formatter" value="json-formatter" />
        </feature>
        <feature spec="core-service.management.access.audit.file-handler">
            <param name="file-handler" value="host-file"/>
            <param name="relative-to" value="jboss.domain.data.dir"/>
            <param name="formatter" value="json-formatter" />
            <param name="path" value="audit-log.log"/>
        </feature>
        <feature spec="core-service.management.access.audit.file-handler">
            <param name="file-handler" value="server-file"/>
            <param name="relative-to" value="jboss.server.data.dir"/>
            <param name="formatter" value="json-formatter" />
            <param name="path" value="audit-log.log"/>
        </feature>
        <feature spec="core-service.management.access.audit.logger.audit-log">
            <param name="log-boot" value="true" />
            <param name="log-read-only" value="false"/>
            <param name="enabled" value="false"/>
            <feature spec="core-service.management.access.audit.logger.audit-log.handler">
                <param name="handler" value="host-file"/>
            </feature>
        </feature>
        <feature spec="host.core-service.management.access.audit.server-logger.audit-log">
            <param name="log-boot" value="true" />
            <param name="log-read-only" value="false"/>
            <param name="enabled" value="false"/>
            <feature spec="host.core-service.management.access.audit.server-logger.audit-log.handler">
                <param name="handler" value="server-file" />
            </feature>
        </feature>
    </feature>
</feature-group-spec>
