Configuratorpublic final class PropertyConfigurator extends java.lang.Object implements Configurator
ATTACHMENT_KEY| Constructor | Description |
|---|---|
PropertyConfigurator() |
Construct an instance.
|
PropertyConfigurator(LogContext context) |
Construct a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
configure(java.io.InputStream inputStream) |
Configure the logmanager.
|
void |
configure(java.util.Properties properties) |
Configure the log manager from the given properties.
|
LogContextConfiguration |
getLogContextConfiguration() |
Get the log context configuration.
|
void |
writeConfiguration(java.io.OutputStream outputStream) |
Writes the current configuration to the output stream.
|
void |
writeConfiguration(java.io.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(java.io.InputStream inputStream)
throws java.io.IOException
configure in interface ConfiguratorinputStream - the input stream to readjava.io.IOException - if an error occurspublic void writeConfiguration(java.io.OutputStream outputStream)
throws java.io.IOException
outputStream - the output stream to write to.java.io.IOException - if an error occurs while writing the configuration.public void writeConfiguration(java.io.OutputStream outputStream,
boolean writeExpressions)
throws java.io.IOException
outputStream - the output stream to write to.writeExpressions - true if expressions should be written, false if the resolved value should
be writtenjava.io.IOException - if an error occurs while writing the configuration.public void configure(java.util.Properties properties)
throws java.io.IOException
written the trimmed values will be written for the above properties.properties - the propertiesjava.io.IOException - if an error occursCopyright © 2018. All rights reserved.