All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dke.data.agrirouter.api.service.RequestLogging Maven / Gradle / Ivy

Go to download

This project contains the API for the communication with the agrirouter. Everything you need for the onboarding process, secure communication and much more.

There is a newer version: 1.0.0-jdk11-RC1
Show newest version
package com.dke.data.agrirouter.api.service;

import javax.ws.rs.core.Response;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public interface RequestLogging {

  Logger logger = LogManager.getLogger(RequestLogging.class);

  default void logRequest(String className, Response response) {
    String logMessage = "\n" + "# [" + className + "] " + "\n" + response + "\n";
    this.logger.info(() -> logMessage);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy