Created
November 8, 2021 15:41
-
-
Save Hkazanci93/7fce813ac4578402f78ab5b94b4b46e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LogubLog { | |
@Builder.Default | |
private String id = UUID.randomUUID().toString(); | |
@Builder.Default | |
private String index = "principal"; | |
@NonNull | |
private SystemProperties systemProperties; | |
@Builder.Default | |
private Map<String, Object> businessProperties = Collections.emptyMap(); | |
@Builder.Default | |
private Optional<String> message = Optional.empty(); | |
@Builder.Default | |
private Instant timestamp = Instant.now(); | |
@Builder.Default | |
private Optional<String> service = Optional.empty(); | |
@Builder.Default | |
private Optional<String> logger = Optional.empty(); | |
@Builder.Default | |
private Optional<String> thread = Optional.empty(); | |
@Builder.Default | |
private Optional<String> source = Optional.empty(); | |
@Builder.Default | |
private LogLevel level = UNKNOWN; | |
} | |
public class SystemProperties { | |
@Builder.Default | |
Optional<String> imageName = Optional.empty(); | |
@Builder.Default | |
Optional<String> containerName= Optional.empty(); | |
@Builder.Default | |
Optional<String> containerId= Optional.empty(); | |
@Builder.Default | |
Optional<String> env= Optional.empty(); | |
@Builder.Default | |
Optional<String> host= Optional.empty(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment