Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rawnly/logre-client-java
- Owner: rawnly
- Created: 2020-05-30T00:04:43.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-05T22:28:13.000Z (11 months ago)
- Last Synced: 2024-05-02T01:48:59.205Z (6 months ago)
- Topics: java, logre, maven
- Language: Java
- Homepage: https://search.maven.org/search?q=a:logre-client-java
- Size: 41 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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
```xmlcom.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)
```