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

io.orangebeard.client.entity.Log Maven / Gradle / Ivy

There is a newer version: 3.0.1
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy