Class BootLoggingConfiguration
- java.lang.Object
-
- org.wildfly.plugin.tools.bootablejar.BootLoggingConfiguration
-
public class BootLoggingConfiguration extends Object
Generates a newlogging.properties
file based on the logging subsystem model.This should be considered a hack which generates a
logging.properties
file. The generated file will not necessarily be identical to that of which WildFly generates. Expressions will be written to the generated file. For this reason a new file will be generated which the entry point needs to load as system properties before the log manager is configured.Also handlers, formatters and filters considered explicit will not be configured at boot. As they are not used by another resource this should not be an issue. Once the logging subsystems runtime phase is executed these resources will be initialized.
- Author:
- James R. Perkins
-
-
Constructor Summary
Constructors Constructor Description BootLoggingConfiguration()
Creates a configuration generator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generate(Path configDir, org.jboss.as.controller.client.ModelControllerClient client)
Generates alogging.properties
file based on the logging configuration.static void
generateBootLoggingConfig(String[] cp, Path home, Path output)
Generate the logging configuration in a forked process.
-
-
-
Method Detail
-
generate
public void generate(Path configDir, org.jboss.as.controller.client.ModelControllerClient client) throws IOException
Generates alogging.properties
file based on the logging configuration.- Parameters:
configDir
- the configuration directory where thelogging.properties
should be storedclient
- the client used to communicate with a running server- Throws:
IOException
- if an error occurs communicating with the serverRuntimeException
- if a server operation is unsuccessful
-
generateBootLoggingConfig
public static void generateBootLoggingConfig(String[] cp, Path home, Path output) throws IOException
Generate the logging configuration in a forked process.- Parameters:
cp
- the class path used to fork the logging config generatorhome
- the server home directoryoutput
- the path to the output file for the process- Throws:
IOException
- if an error occurs when creating the process
-
-