Skip to content

Commit 9a0ae76

Browse files
Merge pull request #10 from logdash-io/feat/readme
docs: update readme
2 parents 752fbba + a9d8462 commit 9a0ae76

1 file changed

Lines changed: 47 additions & 22 deletions

File tree

README.md

Lines changed: 47 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
# Logdash Java SDK
22

33
[![GitHub Release](https://img.shields.io/github/v/release/logdash-io/java-sdk)](https://github.com/logdash-io/java-sdk/releases)
4+
[![Maven Central](https://img.shields.io/maven-central/v/io.logdash/logdash)](https://central.sonatype.com/artifact/io.logdash/logdash)
45
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
56
[![Java Version](https://img.shields.io/badge/Java-17+-blue.svg)](https://openjdk.java.net/projects/jdk/17/)
67
[![CI/CD](https://github.com/logdash-io/java-sdk/workflows/CI/CD%20Pipeline/badge.svg)](https://github.com/logdash-io/java-sdk/actions)
8+
[![Coverage](https://img.shields.io/codecov/c/github/logdash-io/java-sdk)](https://codecov.io/gh/logdash-io/java-sdk)
79

8-
Official Java SDK for [Logdash.io](https://logdash.io/) - Zero-configuration observability platform designed for developers working on side projects and prototypes.
10+
> **Official Java SDK for [Logdash.io](https://logdash.io/) - Zero-configuration observability platform designed for developers working on side projects and prototypes.**
911
1012
## Why Logdash?
1113

12-
Most observability solutions feel overwhelming for hobby projects. Logdash provides instant logging and real-time
13-
metrics without complex configurations. Just add the SDK and start monitoring your application immediately.
14+
Most observability solutions feel overwhelming for small projects and prototypes. Logdash provides **instant logging and real-time metrics** without complex configurations. Just add the SDK and start monitoring your application immediately.
1415

15-
## Features
16+
## Key Features
1617

1718
- **🚀 Zero Configuration**: Start logging and tracking metrics in seconds
1819
- **📊 Real-time Dashboard**: Cloud-hosted interface with live data updates
@@ -23,15 +24,13 @@ metrics without complex configurations. Just add the SDK and start monitoring yo
2324
- **🔧 Framework Agnostic**: Works with Spring Boot, Quarkus, Micronaut, or standalone apps
2425
- **☕ Java 17+ Compatible**: Supports Java 17, 21, and all newer versions
2526

26-
## Quick Start
27-
28-
### Installation
27+
## Pre-requisites
2928

30-
**Maven Central**
29+
Setup your free project in less than 2 minutes at [logdash.io](https://logdash.io/)
3130

32-
Add the dependency to your project:
31+
## Installation
3332

34-
**Maven:**
33+
### Maven Central
3534

3635
```xml
3736
<dependency>
@@ -41,23 +40,23 @@ Add the dependency to your project:
4140
</dependency>
4241
```
4342

44-
**Gradle:**
43+
### Gradle
4544

46-
```gradle
45+
```groovy
4746
dependencies {
4847
implementation 'io.logdash:logdash:0.2.0-SNAPSHOT'
4948
}
5049
```
5150

52-
**Gradle (Kotlin DSL):**
51+
### Gradle (Kotlin DSL)
5352

5453
```kotlin
5554
dependencies {
5655
implementation("io.logdash:logdash:0.2.0-SNAPSHOT")
5756
}
5857
```
5958

60-
**Local Installation**
59+
### Local Installation
6160

6261
```bash
6362
# Clone and install locally
@@ -76,6 +75,8 @@ Then use in your project:
7675
</dependency>
7776
```
7877

78+
## Quick Start
79+
7980
### Basic Usage
8081

8182
```java
@@ -270,17 +271,25 @@ Track business and technical metrics to monitor application performance:
270271
var metrics = logdash.metrics();
271272

272273
// Counters - track events and occurrences
273-
metrics.mutate("page_views",1);
274-
metrics.mutate("api_requests",5);
275-
metrics.mutate("response_time_ms",-100);
276-
metrics.mutate("available_licenses",-1);
274+
metrics.mutate("page_views", 1);
275+
metrics.mutate("api_requests", 5);
276+
metrics.mutate("response_time_ms", -100);
277+
metrics.mutate("available_licenses", -1);
277278

278279
// Gauges - track current values
279280
metrics.set("active_users", 1_250);
280281
metrics.set("memory_usage_mb", 512.5);
281282
metrics.set("queue_size", 0);
282283
```
283284

285+
## View Your Data
286+
287+
To see the logs or metrics, go to your project dashboard at [logdash.io](https://logdash.io/app/clusters)
288+
289+
![Logs Dashboard](docs/images/logs.png)
290+
291+
![Metrics Dashboard](docs/images/delta.png)
292+
284293
## Configuration
285294

286295
### Development Configuration
@@ -306,9 +315,11 @@ Logdash logdash = Logdash.builder()
306315
.build();
307316
```
308317

318+
## Configuration
319+
309320
### All Configuration Options
310321

311-
| Option | Default | Description |
322+
| Parameter | Default | Description |
312323
|-------------------------|--------------------------|----------------------------------|
313324
| `apiKey` | `null` | Your Logdash API key (required) |
314325
| `baseUrl` | `https://api.logdash.io` | Logdash API endpoint |
@@ -371,7 +382,7 @@ Check out the [`examples/`](./examples) directory for a complete sample applicat
371382

372383
- **Java 17 or higher** (tested on Java 17, 21, 22)
373384
- **Internet connection** for sending data to Logdash
374-
- **Valid API key** from [Logdash.io](https://logdash.io)
385+
- **Valid API key** from [logdash.io](https://logdash.io)
375386

376387
## Contributing
377388

@@ -383,7 +394,6 @@ We welcome contributions! Here's how to get started:
383394
git clone https://github.com/logdash-io/java-sdk.git
384395
cd java-sdk
385396
mvn clean compile
386-
mvn test
387397
```
388398

389399
### Running Tests
@@ -401,11 +411,26 @@ mvn clean verify
401411

402412
### Code Quality
403413

404-
- Follow existing code style (checkstyle configuration included)
414+
- Follow existing code style
405415
- Ensure all tests pass
406416
- Add tests for new features
407417
- Update documentation as needed
408418

419+
### GitFlow Workflow
420+
421+
```bash
422+
# Start new feature
423+
git checkout develop && git pull origin develop
424+
git checkout -b feat/awesome-feature
425+
426+
# Development and testing
427+
mvn clean verify
428+
git add . && git commit -m "feat: add awesome feature"
429+
git push origin feat/awesome-feature
430+
431+
# Create pull request to develop branch
432+
```
433+
409434
## License
410435

411436
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

0 commit comments

Comments
 (0)