log4j-redis-appender

an appender used to push log4j logs to redis

License

License

Categories

Categories

Redis Data Databases
GroupId

GroupId

com.github.zsxneil
ArtifactId

ArtifactId

log4j-redis-appender
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

log4j-redis-appender
an appender used to push log4j logs to redis
Project URL

Project URL

https://github.com/zsxneil/log4j-redis-appender
Source Code Management

Source Code Management

https://github.com/zsxneil/log4j-redis-appender

Download log4j-redis-appender

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
redis.clients : jedis jar 2.9.0

provided (1)

Group / Artifact Type Version
log4j : log4j jar 1.2.17

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

This is an appender used for pushing log4j logs to redis.

you can use it in a log4j.xml like this:

<appender name="logstash" class="com.github.zsxneil.log4j.RedisAppender">
	<param name="source" value="spring-application"/>
	<param name="type" value="redis-input"/>
	<param name="host" value="localhost"/>
	<param name="password" value="password"/>
	<param name="port" value="6379"/>
	<param name="key" value="logstash:redis"/>
	<param name="tags" value="test"/>
	<param name="mdc" value="true"/>
	<param name="location" value="true"/>
	<param name="appname" value="log4j-redis-appender"/>
</appender>

you can get it from maven central repository already. the dependency is here:

<dependency>
    <groupId>com.github.zsxneil</groupId>
    <artifactId>log4j-redis-appender</artifactId>
    <version>1.0.0</version>
</dependency>

Versions

Version
1.0.0