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

org.infinispan.protostream.impl.Log Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.protostream.impl;

import org.jboss.logging.BasicLogger;
import org.jboss.logging.Logger;
import org.jboss.logging.annotations.LogMessage;
import org.jboss.logging.annotations.Message;
import org.jboss.logging.annotations.MessageLogger;

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

/**
 * @author [email protected]
 */
@MessageLogger(projectCode = "PROTOSTREAM")
public interface Log extends BasicLogger {

   @LogMessage(level = WARN)
   @Message(value = "Field %s was read out of sequence leading to sub-optimal performance", id = 1)
   void fieldReadOutOfSequence(String fieldName);

   @LogMessage(level = WARN)
   @Message(value = "Field %s was written out of sequence and will lead to sub-optimal read performance", id = 2)
   void fieldWriteOutOfSequence(String fieldName);

   public static class LogFactory {
      public static Log getLog(Class clazz) {
         return Logger.getMessageLogger(Log.class, clazz.getName());
      }
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy