Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.13 KB

README.md

File metadata and controls

42 lines (31 loc) · 1.13 KB

log4j-boodskap-appender

Log4J Boodskap Platform Appender

Maven Dependency

    <dependencies>
        <dependency>
                <groupId>io.boodskap.iot.ext</groupId>
                <artifactId>log4j-boodskap-appender</artifactId>
                <version>1.0.0</version>
        </dependency>
    </dependencies>

Sample log4j2.xml Configuration

    <Boodskap name="Boodskap">
      
      <!--Refer to Log4J PatternLayout for more details-->
      <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p %c{1}:%L - %m%n"/>
      
      <!--Enable / Disable synchronous logging, enabling may introduce considerable delay in the execution-->
      <sync>false</sync>
      
      <!--Max numer of log events to be buffered in the memory-->
      <queueSize>10000</queueSize>
      
      <!--Boodskap platform API base path-->
      <apiBasePath></apiBasePath>
      
      <!-- Boodskap platform's Domain Key -->
      <domainKey></domainKey>
      
      <!-- Boodskap platform's API Key -->
      <apiKey></apiKey>
      
      <!-- Boodskap Log Analyzer's Application ID -->
      <appId></appId>
      
    </Boodskap>