public final class PropertyConfigurator extends Object implements Configurator
ATTACHMENT_KEY
Constructor and Description |
---|
PropertyConfigurator()
Construct an instance.
|
PropertyConfigurator(LogContext context)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
configure(InputStream inputStream)
Configure the logmanager.
|
void |
configure(Properties properties)
Configure the log manager from the given properties.
|
LogContextConfiguration |
getLogContextConfiguration()
Get the log context configuration.
|
void |
writeConfiguration(OutputStream outputStream)
Writes the current configuration to the output stream.
|
void |
writeConfiguration(OutputStream outputStream,
boolean writeExpressions)
Writes the current configuration to the output stream.
|
public PropertyConfigurator()
public PropertyConfigurator(LogContext context)
context
- the log context to be configuredpublic LogContextConfiguration getLogContextConfiguration()
writeConfiguration(java.io.OutputStream)
method also accesses this object directly.public void configure(InputStream inputStream) throws IOException
configure
in interface Configurator
inputStream
- the input stream to readIOException
- if an error occurspublic void writeConfiguration(OutputStream outputStream) throws IOException
outputStream
- the output stream to write to.IOException
- if an error occurs while writing the configuration.public void writeConfiguration(OutputStream outputStream, boolean writeExpressions) throws IOException
outputStream
- the output stream to write to.writeExpressions
- true
if expressions should be written, false
if the resolved value should
be writtenIOException
- if an error occurs while writing the configuration.public void configure(Properties properties) throws IOException
written
the trimmed values will be written for the above properties.properties
- the propertiesIOException
- if an error occursCopyright © 2019 JBoss by Red Hat. All rights reserved.