Logback DaDaPush Notification Appender

Logback appender for sending messages to DaDaPush channel

License

License

Categories

Categories

CLI User Interface Logback Application Layer Libs Logging
GroupId

GroupId

com.dadapush.client
ArtifactId

ArtifactId

dadapush-logback-appender
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

Logback DaDaPush Notification Appender
Logback appender for sending messages to DaDaPush channel
Project URL

Project URL

https://github.com/dadapush/dadapush-logback-appender
Source Code Management

Source Code Management

https://github.com/dadapush/dadapush-logback-appender

Download dadapush-logback-appender

How to add to project

<!-- https://jarcasting.com/artifacts/com.dadapush.client/dadapush-logback-appender/ -->
<dependency>
    <groupId>com.dadapush.client</groupId>
    <artifactId>dadapush-logback-appender</artifactId>
    <version>1.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.dadapush.client/dadapush-logback-appender/
implementation 'com.dadapush.client:dadapush-logback-appender:1.0.2'
// https://jarcasting.com/artifacts/com.dadapush.client/dadapush-logback-appender/
implementation ("com.dadapush.client:dadapush-logback-appender:1.0.2")
'com.dadapush.client:dadapush-logback-appender:jar:1.0.2'
<dependency org="com.dadapush.client" name="dadapush-logback-appender" rev="1.0.2">
  <artifact name="dadapush-logback-appender" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.dadapush.client', module='dadapush-logback-appender', version='1.0.2')
)
libraryDependencies += "com.dadapush.client" % "dadapush-logback-appender" % "1.0.2"
[com.dadapush.client/dadapush-logback-appender "1.0.2"]

Dependencies

compile (1)

Group / Artifact Type Version
com.dadapush.client : dadapush-client jar 1.0.0

provided (2)

Group / Artifact Type Version
ch.qos.logback : logback-core jar 1.2.3
ch.qos.logback : logback-classic jar 1.2.3

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Logback DaDaPush Notification Appender

Usage

add dependency

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

define appender

  <appender name="DADAPUSH" class="com.dadapush.client.logback.DaDaPushAppender">

    <!-- basePath default value: https://www.dadapush.com -->
     <basePath>https://www.dadapush.com</basePath> 
    <channelToken>YOUR_CHANNEL_TOKEN</channelToken>

    <titleLayout class="ch.qos.logback.classic.PatternLayout">
      <pattern>[%-5level] %class</pattern>
    </titleLayout>
    <contentLayout class="ch.qos.logback.classic.PatternLayout">
      <pattern>Level: %-5level\nLoggerName: %class\nMessage: %msg%n</pattern>
    </contentLayout>
  </appender>

  <appender name="DADAPUSH_ASYNC" class="ch.qos.logback.classic.AsyncAppender">
    <appender-ref ref="DADAPUSH" />
    <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
      <level>ERROR</level>
    </filter>
  </appender>

use appender

  <root level="info">
    <appender-ref ref="DADAPUSH_ASYNC" />
  </root>
com.dadapush.client

DaDaPush

DaDaPush: Real-time Notifications App

Versions

Version
1.0.2
1.0.1