- In the projects root folder, run
./gradlew build -x test
- Run
./gradlew publishToMavenLocal
- In
build.gradle.kts
(if you are using kotlin configuration), add withindependencies {}
, the firetail library:
dependencies {
implementation("com.github.firetail-io:firetail-java-lib:$version")
}
- Also in
build.gradle.kts
add below theplugins {}
:
group = "com.github.firetail-io"
version = "0.0.1-SNAPSHOT"
- In your springboot project, add
application-local.yml
inbuild/resources
NOTE: Ensure there is no FIRETAIL_URL and FIRETAIL_API_KEY variable in your environment, which will override your yaml file configuration
firetail:
apikey: "PS-02....441b09761c3"
url: "https://your-apiapi.logging.eu-north-west-99.sandbox.firetail.app"
## Cache control before dispatching logs to API
buffer:
# Millis
interval: 100000
# Max capacity
capacity: 5