public interface LoggerConfigurator
extends play.api.LoggerConfigurator
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<LoggerConfigurator> |
apply(java.lang.ClassLoader classLoader) |
void |
configure(Environment env)
This is a convenience method that adds no extra properties.
|
default void |
configure(play.api.Environment env) |
default void |
configure(Environment env,
com.typesafe.config.Config configuration)
Configures the logger with the environment and the application configuration.
|
void |
configure(Environment env,
com.typesafe.config.Config configuration,
java.util.Map<java.lang.String,java.lang.String> optionalProperties)
Configures the logger with the environment, the application configuration and
additional properties.
|
default void |
configure(play.api.Environment env,
play.api.Configuration configuration,
scala.collection.immutable.Map<java.lang.String,java.lang.String> optionalProperties) |
default void |
configure(scala.collection.immutable.Map<java.lang.String,java.lang.String> properties,
scala.Option<java.net.URL> config) |
void |
configure(java.util.Map<java.lang.String,java.lang.String> properties,
java.util.Optional<java.net.URL> config)
Configures the logger with a list of properties and an optional URL.
|
static java.util.Map<java.lang.String,java.lang.String> |
generateProperties(Environment env,
com.typesafe.config.Config config,
java.util.Map<java.lang.String,java.lang.String> optionalProperties) |
void |
init(java.io.File rootPath,
Mode mode)
Initialize the Logger when there's no application ClassLoader available.
|
default void |
init(java.io.File rootPath,
play.api.Mode mode) |
org.slf4j.ILoggerFactory |
loggerFactory()
Returns the logger factory for the configurator.
|
void |
shutdown()
Shutdown the logger infrastructure.
|
void init(java.io.File rootPath, Mode mode)
rootPath
- the root pathmode
- the odedefault void init(java.io.File rootPath, play.api.Mode mode)
init
in interface play.api.LoggerConfigurator
void configure(Environment env)
env
- the environment.default void configure(play.api.Environment env)
configure
in interface play.api.LoggerConfigurator
default void configure(Environment env, com.typesafe.config.Config configuration)
This is what full applications will run, and the place to put extra properties, either through optionalProperties or by setting configuration properties and having "play.logger.includeConfigProperties=true" in the config.
env
- the application environmentconfiguration
- the application's configurationvoid configure(Environment env, com.typesafe.config.Config configuration, java.util.Map<java.lang.String,java.lang.String> optionalProperties)
This is what full applications will run, and the place to put extra properties, either through optionalProperties or by setting configuration properties and having "play.logger.includeConfigProperties=true" in the config.
env
- the application environmentconfiguration
- the application's configurationoptionalProperties
- any optional properties (you can use an empty Map otherwise)default void configure(play.api.Environment env, play.api.Configuration configuration, scala.collection.immutable.Map<java.lang.String,java.lang.String> optionalProperties)
configure
in interface play.api.LoggerConfigurator
void configure(java.util.Map<java.lang.String,java.lang.String> properties, java.util.Optional<java.net.URL> config)
This is the engine's entrypoint method that has all the properties pre-assembled.
properties
- the propertiesconfig
- the configuration URLdefault void configure(scala.collection.immutable.Map<java.lang.String,java.lang.String> properties, scala.Option<java.net.URL> config)
configure
in interface play.api.LoggerConfigurator
org.slf4j.ILoggerFactory loggerFactory()
loggerFactory
in interface play.api.LoggerConfigurator
void shutdown()
shutdown
in interface play.api.LoggerConfigurator
static java.util.Optional<LoggerConfigurator> apply(java.lang.ClassLoader classLoader)
apply
in interface play.api.LoggerConfigurator
static java.util.Map<java.lang.String,java.lang.String> generateProperties(Environment env, com.typesafe.config.Config config, java.util.Map<java.lang.String,java.lang.String> optionalProperties)