public void Enrich(LogEvent logEvent, ILogEventPropertyFactory propertyFactory) { var bytes = Encoding.UTF8.GetBytes(logEvent.MessageTemplate.Text); var hash = MurmurHash.ByteHash(bytes); var eventType = propertyFactory.CreateProperty("EventType", hash.ToString("x8")); logEvent.AddPropertyIfAbsent(eventType); }
public int Murmur_binary_hash() { return(MurmurHash.ByteHash(testBinary)); }