A logback appender for PlotMachine
Java
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/main/java/me/shimi/logback
.gitignore
README.textile
pom.xml

README.textile

logback-plotmachine a logback appender for PlotMachine

Introduction

logback-plotmachine is a logback appender for PlotMachine.
The appender sends asynchronous non blocking HTTP calls to a PlotMachine server for every log Event.
It uses the Logger name as the name and the message as the value.

Example:

public class MyClass {
  Logger logger  = LoggerFactory.getLogger("UpdateTime");
  
  public void myMethod() {
 
    // long time = ... get the time
    long time = 10;
    logger.info(time);
  }
}
<configuration scan="false" debug="false">
  <appender name="plotmachine" class="me.shimi.logback.PlotMachineAppender">
    <ApiUrl>http://mydomain/PlotMachine/api/monitor/data/add?&lt;/ApiUrl&gt;
  </appender>
  <root level="INFO">
    <appender-ref ref="plotmachine" />
  </root>
</configuration>

The appender will make HTTP call to

http://mydomain/PlotMachine/api/monitor/data/add?name=UpdateTime&value=10

Installation

You can download the jar from the Downloads section or setup your maven configuration with the following settings:

	<repositories>
		<repository>
			<id>Shimi</id>
			<name>Shimi Snapshot Repo</name>
			<url>https://github.com/Shimi/shimi-mvn-repo/tree/master/snapshots</url>
		</repository>
	</repositories>
	
	<dependencies>
		<dependency>
			<groupId>me.shimi.logback</groupId>
			<artifactId>logback-plotmachine</artifactId>
			<version>1.0-SNAPSHOT</version>
		</dependency>
	</dependencies>

Dependencies