public class LoggingLevel
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
host |
java.lang.String |
install |
java.lang.String |
level |
java.lang.String |
logger |
java.lang.String |
process |
Constructor and Description |
---|
LoggingLevel() |
LoggingLevel(LoggingLevel o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this LoggingLevel.
|
static LoggingLevel |
fromString(java.lang.String s)
String representation of this LoggingLevel.
|
java.lang.String |
getHost()
Host for which this logging level should be applied.
If null, the configuration applies to every host of the cluster. |
java.lang.String |
getInstall()
Instance for which this logging level should be applied.
If null, the configuration applies to every instance of the cluster. |
java.lang.String |
getLevel()
Logging level.
|
java.lang.String |
getLogger()
Logger for which this logging level should be applied.
If null, the configuration applies to every logger. |
java.lang.String |
getProcess()
Process for which this logging level should be applied.
If null, the configuration applies to every process of the selected host (or every host if host is null). |
LoggingLevel |
makeCopy()
Creates and returns a deep copy of this LoggingLevel.
|
static LoggingLevel |
readFrom(java.io.InputStream is)
Read this LoggingLevel from an XML fragment.
|
void |
setHost(java.lang.String host)
Host for which this logging level should be applied.
If null, the configuration applies to every host of the cluster. |
void |
setInstall(java.lang.String install)
Instance for which this logging level should be applied.
If null, the configuration applies to every instance of the cluster. |
void |
setLevel(java.lang.String level)
Logging level.
|
void |
setLogger(java.lang.String logger)
Logger for which this logging level should be applied.
If null, the configuration applies to every logger. |
void |
setProcess(java.lang.String process)
Process for which this logging level should be applied.
If null, the configuration applies to every process of the selected host (or every host if host is null). |
java.lang.String |
toString()
String representation of this LoggingLevel.
|
LoggingLevel |
withHost(java.lang.String host) |
LoggingLevel |
withInstall(java.lang.String install) |
LoggingLevel |
withLevel(java.lang.String level) |
LoggingLevel |
withLogger(java.lang.String logger) |
LoggingLevel |
withProcess(java.lang.String process) |
void |
writeTo(java.io.OutputStream os)
Write this LoggingLevel as an XML fragment
|
public java.lang.String level
public java.lang.String host
public java.lang.String install
public java.lang.String process
public java.lang.String logger
public LoggingLevel()
public LoggingLevel(LoggingLevel o)
public void setLevel(java.lang.String level)
off
,fatal
,error
,warning
,info
,notice
,debug
, andtrace
.public java.lang.String getLevel()
off
,fatal
,error
,warning
,info
,notice
,debug
, andtrace
.public LoggingLevel withLevel(java.lang.String level)
public void setHost(java.lang.String host)
public java.lang.String getHost()
public LoggingLevel withHost(java.lang.String host)
public void setInstall(java.lang.String install)
public java.lang.String getInstall()
public LoggingLevel withInstall(java.lang.String install)
public void setProcess(java.lang.String process)
host
is null).public java.lang.String getProcess()
host
is null).public LoggingLevel withProcess(java.lang.String process)
public void setLogger(java.lang.String logger)
public java.lang.String getLogger()
public LoggingLevel withLogger(java.lang.String logger)
public LoggingLevel makeCopy()
public static LoggingLevel readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static LoggingLevel fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.