Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rawnly/logre-client-java

JAVA driver for Logre.IO
https://github.com/rawnly/logre-client-java

java logre maven

Last synced: about 4 hours ago
JSON representation

JAVA driver for Logre.IO

Awesome Lists containing this project

README

        

# Java Driver for [LogreIO](https://logre.io)
Java driver to send logs to **[Logre.IO](https://logre.io)**

> Are you a GoLang developer? Check out the [Go driver](https://github.com/Rawnly/logre-client-go) for Logre.IO

## Installation
```xml

com.github.rawnly
logre-client-java
{latest}

```

## Quick Start
```java
class HelloWorld {
// Initialize the class
private static final LogreClient log = new LogreClient("", "", MyClass.class);

public static void main(String[] args) {
// Start Logging!
log.info("Hello World!");

System.out.println("Hello World!");
}
}
```

### Available Constructors
- `LogreClient(String boxId, String authToken, Class> aClass)`
- `LogreClient(String boxId, Class> aClass)`

### Proxy requests
LogreClient uses [Unirest](http://kong.github.io/unirest-java/) under the hood, so you can easily setup a proxy via the `setProxy` method.
```java
private final LogreClient log = new LogreClient(...)


// Later somewhere in your code
log.setProxy(String host, int port)
// or
log.setProxy(String host, int port, String username, String password)
```