https://github.com/coralogix/sdk-java-example
Example project with usage of Coralogix Java SDK.
https://github.com/coralogix/sdk-java-example
coralogix java logging
Last synced: 11 months ago
JSON representation
Example project with usage of Coralogix Java SDK.
- Host: GitHub
- URL: https://github.com/coralogix/sdk-java-example
- Owner: coralogix
- License: apache-2.0
- Created: 2022-01-23T17:19:35.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-06-19T15:11:21.000Z (about 1 year ago)
- Last Synced: 2025-06-19T16:27:03.586Z (about 1 year ago)
- Topics: coralogix, java, logging
- Language: Java
- Homepage: https://coralogix.com/integrations/coralogix-java-integration/
- Size: 13.7 KB
- Stars: 0
- Watchers: 44
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Coralogix Java SDK sample project
## This code is deprecated and will be removed in August 4, please use otel [java sdk instead](https://opentelemetry.io/docs/languages/java/)
This is a sample project which demonstrates the example of usage of [Coralogix Java SDK](https://mvnrepository.com/artifact/com.coralogix.sdk/coralogix-sdk).
## Prerequisites
* **JDK** 8+
* **JRE** 8+
* **Maven** 3.x
## Build
The main application code is presented in `com.coralogix.sdk.ExampleApp` class.
To build the project you need to execute the following command:
```bash
mvn package
```
After compilation you will have `target/` folder which will contain the `.jar` file with the test application.
## Run
To run the package you need to execute the following command:
```bash
export CORALOGIX_PRIVATE_KEY="YOUR_CORALOGIX_PRIVATE_KEY"
java -jar target/coralogix-sdk-example-1.0-SNAPSHOT.jar
```
## Extend
To use **Coralogix Java SDK** in your application you should add the appropriate dependency to your `pom.xml` file:
```xml
com.coralogix.sdk
coralogix-sdk
2.0.x
```
where `2.0.x` should be replaced with the latest version from the [Maven](https://mvnrepository.com/artifact/com.coralogix.sdk/coralogix-sdk) repository.