![JAR search and dependency download from the Maven repository](/logo.png)
com.vmlens.trace.agent.bootstrap.event.AgentLogEvent Maven / Gradle / Ivy
package com.vmlens.trace.agent.bootstrap.event;
import java.io.DataOutputStream;
public class AgentLogEvent implements StaticEvent {
private final String message;
public AgentLogEvent(String message) {
super();
int maxLength = Math.min( 6000 , message.length() );
this.message = message.substring(0, maxLength);
//this.message = message;
}
@Override
public void serialize(StreamRepository streamRepository) throws Exception {
DataOutputStream stream = streamRepository.agentLog.getStream();
stream.writeUTF(message);
stream.flush();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy