Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1.17 KB

File metadata and controls

48 lines (33 loc) · 1.17 KB

Retack Logger SDK

A simple logger SDK that logs errors into retack.ai.

Overview

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.

Installation

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>

Usage

To use the Retack Logger SDK in your project, follow these steps:

  1. Initialize the Java Logger:
private static final Logger logger = Logger.getLogger(HelloWorld.class.getName());
  1. Initialize the Retack Logger SDK with ENV key:
errorLoggingHandler = new ErrorLoggingHandler("your-env-key");
  1. Add the error logging handler to the logger:
logger.addHandler(errorLoggingHandler);
  1. Log an error:
logger.log(Level.SEVERE, "An error occurred", exception);

License

This project is licensed under the MIT License. See the LICENSE file for more details.