com.soento.logback.kafka.keying.KeyingStrategy Maven / Gradle / Ivy
package com.soento.logback.kafka.keying;
import ch.qos.logback.classic.spi.ILoggingEvent;
/**
* A strategy that can create byte array key for a given {@link ILoggingEvent}.
* @since 0.0.1
*/
public interface KeyingStrategy {
/**
* creates a byte array key for the given {@link ILoggingEvent}
* @param e the logging event
* @return a key
*/
byte[] createKey(E e);
}