@Configuration
@ConditionalOnClass(value={ch.qos.logback.classic.LoggerContext.class,de.appelgriepsch.logback.GelfAppender.class})
@EnableConfigurationProperties(value={CoffeeNetLoggingFileProperties.class,CoffeeNetLoggingGelfProperties.class,CoffeeNetConfigurationProperties.class,CoffeeNetLoggingConsoleProperties.class})
@ConditionalOnProperty(prefix="coffeenet.logging",
name="enabled",
havingValue="true",
matchIfMissing=true)
public class CoffeeNetLoggingAutoConfiguration
extends Object
CoffeeNet.
If you want to activate a Appender independent from the default configuration you can just enable the
appender via coffeenet.logging.gelf.enabled = true e.g.
Analog with the other appenders (console,file,gelf)
| Constructor and Description |
|---|
CoffeeNetLoggingAutoConfiguration(CoffeeNetLoggingFileProperties coffeeNetLoggingFileProperties,
CoffeeNetLoggingGelfProperties coffeeNetLoggingGelfProperties,
CoffeeNetConfigurationProperties coffeeNetConfigurationProperties,
CoffeeNetLoggingConsoleProperties coffeeNetLoggingConsoleProperties) |
@Autowired public CoffeeNetLoggingAutoConfiguration(CoffeeNetLoggingFileProperties coffeeNetLoggingFileProperties, CoffeeNetLoggingGelfProperties coffeeNetLoggingGelfProperties, CoffeeNetConfigurationProperties coffeeNetConfigurationProperties, CoffeeNetLoggingConsoleProperties coffeeNetLoggingConsoleProperties)
@PostConstruct public void configure()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.