Constructor and Description |
---|
Info()
Constructs an empty LogInfo.
|
Info(XLog.Info logInfo)
Construct a new LogInfo object from an existing one.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear all parameters set in this logInfo instance.
|
void |
clearParameter(String name)
Clear a parameter value from the
LogInfo context. |
String |
createPrefix()
Create the
LogInfo prefix using the current parameter values. |
static void |
defineParameter(String name)
Define a
LogInfo context parameter. |
static XLog.Info |
get()
Return the
LogInfo instance in context. |
String |
getParameter(String name)
Returns the specified parameter.
|
String |
getPrefix() |
static void |
remove()
Remove the
LogInfo instance in context. |
static void |
reset()
Remove all defined context parameters.
|
String |
resetPrefix() |
void |
setParameter(String name,
String value)
Set a parameter value in the
LogInfo context. |
void |
setParameters(XLog.Info logInfo)
Set all the parameter values from the given
LogInfo . |
public Info()
public static void defineParameter(String name)
LogInfo
context parameter. The parameter name and its contextual value will be used to create all prefixes.
name
- name of the context parameter.public static void reset()
public static XLog.Info get()
LogInfo
instance in context.public static void remove()
LogInfo
instance in context.public void clear()
public void setParameter(String name, String value)
LogInfo
context.name
- parameter name.value
- parameter value.public String getParameter(String name)
name
- parameter name.public void clearParameter(String name)
LogInfo
context.name
- parameter name.public void setParameters(XLog.Info logInfo)
LogInfo
.logInfo
- LogInfo
to copy all parameter values from.public String createPrefix()
LogInfo
prefix using the current parameter values.LogInfo
prefix.public String resetPrefix()
Copyright © 2018 Apache Software Foundation. All rights reserved.