io.orangebeard.client.entity.Log Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Orangebeard Java Client, to be used in Orangebeard Java Listeners
package io.orangebeard.client.entity;
import java.time.LocalDateTime;
import java.util.UUID;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
@Getter
@EqualsAndHashCode
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Log {
private UUID itemUuid;
@JsonProperty("launchUuid")
private UUID testRunUUID;
@JsonSerialize(using = DateSerializer.class)
private LocalDateTime time;
private String message;
@JsonProperty("level")
private LogLevel logLevel;
private LogFormat logFormat;
public Log(UUID testRunUUID, UUID testItemUUID, LogLevel logLevel, String message, LogFormat logFormat) {
this.itemUuid = testItemUUID;
this.testRunUUID = testRunUUID;
this.logLevel = logLevel;
this.time = LocalDateTime.now();
this.message = message;
this.logFormat = logFormat;
}
}