Skip to content

Commit 238b878

Browse files
committed
add documentation
1 parent 24eaa35 commit 238b878

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

README.md

+34
Original file line numberDiff line numberDiff line change
@@ -1 +1,35 @@
11
# firetail-java-lib
2+
3+
## Building the library
4+
5+
1. In the projects root folder, run `./gradlew build -x test`
6+
2. Run `./gradlew publishToMavenLocal`
7+
8+
### Springboot configuration
9+
1. In `build.gradle.kts` (if you are using kotlin configuration), add within `dependencies {}`, the firetail library:
10+
11+
```
12+
dependencies {
13+
implementation("com.github.firetail-io:firetail-java-lib:$version")
14+
}
15+
```
16+
2. Also in `build.gradle.kts` add below the `plugins {}`:
17+
18+
```
19+
group = "com.github.firetail-io"
20+
version = "0.0.1-SNAPSHOT"
21+
```
22+
23+
3. In your springboot project, add `application.yml` in `build/resources`
24+
25+
```yaml
26+
firetail:
27+
apikey: "PS-02....441b09761c3"
28+
url: "https://your-apiapi.logging.eu-north-west-99.sandbox.firetail.app"
29+
## Cache control before dispatching logs to API
30+
buffer:
31+
# Millis
32+
interval: 100000
33+
# Max capacity
34+
capacity: 5
35+
```

0 commit comments

Comments
 (0)