Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Provide a QueuedConsoleAppender for Log4j 2 designed to queue log messages.

License

Notifications You must be signed in to change notification settings

DjDCH/Log4j-QueuedConsoleAppender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Log4j-QueuedConsoleAppender

Travis Maven Central MIT License

Provide a QueuedConsoleAppender for Log4j 2 designed to queue log messages.

Requirements

  • Java and Maven installed

Build your project

Add the dependency in your pom.xml file:

<dependency>
    <groupId>com.djdch.log4j</groupId>
    <artifactId>log4j-queuedconsoleappender</artifactId>
    <version>1.0.0</version>
</dependency>

Use the following to get the queue instance:

BlockingQueue<String> queue = QueuedConsoleAppender.getOutputQueue();

Use the following to disable the queue:

QueuedConsoleAppender.setRunning(false);

About

Provide a QueuedConsoleAppender for Log4j 2 designed to queue log messages.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages