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

io.narayana.lra.proxy.logging.lraI18NLogger_$logger Maven / Gradle / Ivy

There is a newer version: 7.0.2.Final
Show newest version
package io.narayana.lra.proxy.logging;

import java.util.Locale;
import java.io.Serializable;
import java.lang.Throwable;
import java.lang.String;
import org.jboss.logging.Logger;
import java.util.concurrent.ExecutionException;


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

/**
 * Warning this class consists of generated code.
 */
public class lraI18NLogger_$logger implements lraI18NLogger, Serializable {
    private static final long serialVersionUID = 1L;
    private static final String FQCN = lraI18NLogger_$logger.class.getName();
    public lraI18NLogger_$logger(final Logger log) {
        this.log = log;
    }
    protected final Logger log;
    private static final Locale LOCALE = Locale.ROOT;
    protected Locale getLoggingLocale() {
        return LOCALE;
    }
    @Override
    public final void error_cannotSerializeParticipant(final String participantToString, final Throwable e) {
        log.logf(FQCN, ERROR, e, error_cannotSerializeParticipant$str(), participantToString);
    }
    protected String error_cannotSerializeParticipant$str() {
        return "LRAPROXY025001: Participant '%s' serialization problem";
    }
    @Override
    public final void error_participantExceptionOnCompletion(final String name, final ExecutionException e) {
        log.logf(FQCN, ERROR, e, error_participantExceptionOnCompletion$str(), name);
    }
    protected String error_participantExceptionOnCompletion$str() {
        return "LRAPROXY025002: Participant '%s' exception during completion";
    }
    protected String error_gettingParticipantStatus$str() {
        return "LRAPROXY025003: Cannot get status of participant '%s' of lra id '%s'";
    }
    @Override
    public final String error_gettingParticipantStatus(final String participant, final String lraId, final Throwable e) {
        return String.format(getLoggingLocale(), error_gettingParticipantStatus$str(), participant, lraId);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy