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

io.smallrye.faulttolerance.CdiLogger_$logger Maven / Gradle / Ivy

There is a newer version: 6.6.2
Show newest version
package io.smallrye.faulttolerance;

import java.util.Locale;
import java.io.Serializable;
import java.util.Set;
import org.jboss.logging.DelegatingBasicLogger;
import org.jboss.logging.BasicLogger;
import java.lang.String;
import javax.enterprise.inject.spi.DefinitionException;
import org.jboss.logging.Logger;
import java.util.Arrays;


import static org.jboss.logging.Logger.Level.INFO;

/**
 * Warning this class consists of generated code.
 */
public class CdiLogger_$logger extends DelegatingBasicLogger implements CdiLogger, BasicLogger, Serializable {
    private static final long serialVersionUID = 1L;
    private static final String FQCN = CdiLogger_$logger.class.getName();
    public CdiLogger_$logger(final Logger log) {
        super(log);
    }
    private static final Locale LOCALE = Locale.ROOT;
    protected Locale getLoggingLocale() {
        return LOCALE;
    }
    @Override
    public final void activated(final String version) {
        super.log.logf(FQCN, INFO, null, activated$str(), version);
    }
    protected String activated$str() {
        return "SRFTL00001: MicroProfile: Fault Tolerance activated (SmallRye Fault Tolerance version: %s)";
    }
    protected String multipleCircuitBreakersWithTheSameName$str() {
        return "SRFTL00002: Multiple circuit breakers have the same name '%s': %s";
    }
    @Override
    public final DefinitionException multipleCircuitBreakersWithTheSameName(final String name, final Set useSites) {
        final DefinitionException result = new DefinitionException(String.format(getLoggingLocale(), multipleCircuitBreakersWithTheSameName$str(), name, useSites));
        _copyStackTraceMinusOne(result);
        return result;
    }
    private static void _copyStackTraceMinusOne(final Throwable e) {
        final StackTraceElement[] st = e.getStackTrace();
        e.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy