Unable to configur dataBlockSize when using chonicle logger along with log4j2

38 views
Skip to first unread message

ma...@nogle.com

unread,
Jun 16, 2015, 6:19:51 AM6/16/15
to java-ch...@googlegroups.com
Hi,
    I am using chronicle logger along with log4j2 to record some transaction data. However, when I try to use the following settings in log4j2.xml, an error message will be thrown out:
        [ERROR vanillaChronicleConfig contains an invalid element or attribute "dataBlockSize"]

    The log4j2.xml has the following configuration:

        <BinaryVanillaChronicle name="BINARY-VANILLA-CHRONICLE">
            <path>${sys:java.io.tmpdir}/chronicleLog/BinaryData</path>
            <vanillaChronicleConfig>
                <dataBlockSize>16777216</dataBlockSize>
                <indexBlockSize>4194304</indexBlockSize>
            </vanillaChronicleConfig>
            <includeCallerData>false</includeCallerData>
            <includeMappedDiagnosticContext>false</includeMappedDiagnosticContext>
        </BinaryVanillaChronicle>

    From AbstractChronicleAppender.java, it seems that dataBlockSize is not one of the @PluginAttribute which can be configured via XML file. Is there any concern not to let user change this attribute by themselves? or may be I just miss the way to configure this attribute?

Thanks

Luca Burgazzoli

unread,
Jun 28, 2015, 11:27:40 AM6/28/15
to java-ch...@googlegroups.com
Fix done in the latest 1.1.1-SNAPSHOT

--
You received this message because you are subscribed to the Google Groups "Chronicle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-chronicl...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages