Class DefaultConfiguratorFactory
java.lang.Object
eu.mulk.quarkus.googlecloud.jsonlogging.logmanager.DefaultConfiguratorFactory
- All Implemented Interfaces:
org.jboss.logmanager.ConfiguratorFactory
public final class DefaultConfiguratorFactory
extends Object
implements org.jboss.logmanager.ConfiguratorFactory
A convenient
ConfiguratorFactory for JBoss Log Manager.
You can register this class through the ServiceLoader mechanism as a
provider of the ConfiguratorFactory interface (under the name of
org.jboss.logmanager.ConfiguratorFactory) to automatically register a ConsoleHandler
using Formatter as the default log output method for the application.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a JBoss Log Manager configuration that usesFormatterandConsoleHandlerfor log output. -
Method Summary
-
Constructor Details
-
DefaultConfiguratorFactory
public DefaultConfiguratorFactory()Constructs a JBoss Log Manager configuration that usesFormatterandConsoleHandlerfor log output.
-
-
Method Details
-
createConsoleHandler
public static org.jboss.logmanager.handlers.ConsoleHandler createConsoleHandler()Creates aConsoleHandlerthat usesFormatterfor formatting.- Returns:
- a preconfigured
ConsoleHandler.
-
create
public org.jboss.logmanager.LogContextConfigurator create()- Specified by:
createin interfaceorg.jboss.logmanager.ConfiguratorFactory
-
priority
public int priority()- Specified by:
priorityin interfaceorg.jboss.logmanager.ConfiguratorFactory
-