A simple logger SDK that logs errors into retack.ai.
The Retack Logger SDK is a Java library that provides an easy way to log errors and send them to the retack.ai platform. This SDK simplifies the process of integrating error logging into your Java applications.
To use the Retack Logger SDK in your project, add the following dependency to your pom.xml file:
<dependency>
<groupId>ai.retack</groupId>
<artifactId>retack-logger</artifactId>
<version>1.0.0</version>
</dependency>To use the Retack Logger SDK in your project, follow these steps:
- Initialize the Java Logger:
private static final Logger logger = Logger.getLogger(HelloWorld.class.getName());- Initialize the Retack Logger SDK with ENV key:
errorLoggingHandler = new ErrorLoggingHandler("your-env-key");- Add the error logging handler to the logger:
logger.addHandler(errorLoggingHandler);- Log an error:
logger.log(Level.SEVERE, "An error occurred", exception);This project is licensed under the MIT License. See the LICENSE file for more details.