public class LogProperty
extends java.lang.Object
| Constructor and Description |
|---|
LogProperty()
Default constructor for a log property
|
LogProperty(java.lang.String propertyName,
java.lang.String propertyValue)
A new log property
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPropertyName()
A specific property name
|
java.lang.String |
getPropertyValue()
Gets the property value
|
int |
hashCode() |
static LogProperty |
newProperty(LogProperties name,
java.lang.String value)
Creates a sortable list of properties that can be customized per handler
|
static LogProperty |
newProperty(java.lang.String name,
java.lang.String value)
Returns a new log entry property and all registered global properties in the log factory
|
@NotNull LogProperty |
setPropertyName(java.lang.String propertyName)
Sets the property name
|
@NotNull LogProperty |
setPropertyValue(java.lang.String propertyValue)
Sets the property value
|
java.lang.String |
toString()
Returns a square bracket display of the properties
|
public LogProperty()
public LogProperty(java.lang.String propertyName,
java.lang.String propertyValue)
propertyName - a specific propertypropertyValue - the property valuepublic static LogProperty newProperty(LogProperties name, java.lang.String value)
name - the generalized property namevalue - the valuepublic static LogProperty newProperty(java.lang.String name, java.lang.String value)
name - The name of the property (usually message)value - The value of the propertypublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getPropertyName()
@NotNull public @NotNull LogProperty setPropertyName(java.lang.String propertyName)
propertyName - sets the property namepublic java.lang.String getPropertyValue()
@NotNull public @NotNull LogProperty setPropertyValue(java.lang.String propertyValue)
propertyValue - the property valueCopyright © 2020 Marc Magon. All rights reserved.