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

io.narayana.lra.proxy.logging.lraI18NLogger Maven / Gradle / Ivy

There is a newer version: 7.0.2.Final
Show newest version
/*
 * JBoss, Home of Professional Open Source.
 * Copyright 2017, Red Hat, Inc., and individual contributors
 * as indicated by the @author tags. See the copyright.txt file in the
 * distribution for a full listing of individual contributors.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */

package io.narayana.lra.proxy.logging;

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

import java.util.concurrent.ExecutionException;

import org.jboss.logging.annotations.Cause;
import org.jboss.logging.annotations.LogMessage;
import org.jboss.logging.annotations.Message;
import org.jboss.logging.annotations.MessageLogger;

/**
 * i18n log messages for the lra module.
 */
@MessageLogger(projectCode = "LRAPROXY")
public interface lraI18NLogger {

    /*
        Message IDs are unique and non-recyclable.
        Don't change the purpose of existing messages.
          (tweak the message text or params for clarification if you like).
        Allocate new messages by following instructions at the bottom of the file.
     */
    @Message(id = 25001, value = "Participant '%s' serialization problem")
    @LogMessage(level = ERROR)
    void error_cannotSerializeParticipant(String participantToString, @Cause Throwable e);

    @Message(id = 25002, value = "Participant '%s' exception during completion")
    @LogMessage(level = ERROR)
    void error_participantExceptionOnCompletion(String name, @Cause ExecutionException e);

    @Message(id = 25003, value = "Cannot get status of participant '%s' of lra id '%s'")
    String error_gettingParticipantStatus(String participant, String lraId, @Cause Throwable e);


    /*
        Allocate new messages directly above this notice.
          - id: use the next id number in numeric sequence. Don't reuse ids.
          The first two digits of the id(XXyyy) denote the module
            all message in this file should have the same prefix.
          - value: default (English) version of the log message.
          - level: according to severity semantics

          Debug and trace don't get i18n. Everything else MUST be i18n.
          By convention methods with String return type have prefix get_,
            all others are log methods and have prefix _
     */

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy