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

graphql.util.LogKit Maven / Gradle / Ivy

There is a newer version: 230521-nf-execution
Show newest version
package graphql.util;

import graphql.Internal;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Internal
public class LogKit {

    /**
     * Creates a logger with a name indicating that the content might not be privacy safe
     * eg it could contain user generated content or privacy information.
     *
     * @param clazz the class to make a logger for
     *
     * @return a new Logger
     */
    public static Logger getNotPrivacySafeLogger(Class clazz) {
        return LoggerFactory.getLogger(String.format("notprivacysafe.%s", clazz.getName()));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy