
io.github.iac_m.jsonlogger.dto.LogVariable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of json-logger-connector
Show all versions of json-logger-connector
JSON Logger is a custom-made Mule logger component which allows user to efficiently log traceable messages and Mule variables in JSON format.
The newest version!
package io.github.iac_m.jsonlogger.dto;
public class LogVariable {
private String scope;
private String name;
private Object value;
private String type;
public LogVariable() {
}
public LogVariable(String scope, String name, Object value, String type) {
this.scope = scope;
this.name = name;
this.value = value;
this.type = type;
}
public String toString(boolean logType) {
if (logType) {
return (scope == null ? "mule" : scope) +"." + name + ": " + value.toString() + (type == null ? "" : "@" + type);
} else {
return (scope == null ? "mule" : scope) +"." + name + ": " + value.toString();
}
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Object getValue() {
return value;
}
public void setValue(Object value) {
this.value = value;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getScope() {
return scope;
}
public void setScope(String scope) {
this.scope = scope;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy