Skip to content
Log4j2 DaDaPush Notification Appender
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
README.md
pom.xml

README.md

Log4j2 DaDaPush Notification Appender

Usage

add dependency

<dependency>
  <groupId>com.dadapush.client</groupId>
  <artifactId>dadapush-log4j2-appender</artifactId>
  <version>1.0.1</version>
</dependency>

define appender

  <Appenders>
      <DaDaPush name="DaDaPush"
        basePath="https://www.dadapush.com"
        channelToken="YOUR_CHANNEL_TOKEN"
        title="[%-5level] %logger{36}"
      >
        <PatternLayout
          pattern="Time: %d{YYYY-MM-dd HH:mm:ss.SSS}\nLevel: %-5level\nLoggerName: %logger{36}\nMessage: %msg%n"/>
      </DaDaPush>
      <Async name="DaDaPush_Async">
        <AppenderRef ref="DaDaPush"/>
      </Async>
    </Appenders>

use appender

  <Root level="info">
    <AppenderRef ref="DaDaPush_Async" level="error"/>
  </Root>
You can’t perform that action at this time.