Commit 9b62d500 authored by Kishore Battula's avatar Kishore Battula
Browse files

Merge branch 'users/Vibhuti/EnableSlf4JByDefault' into 'master'

Enabling logging config by default

See merge request !64
parents fb069e2d 73b99852
Pipeline #20176 passed with stages
in 11 minutes and 35 seconds
......@@ -20,7 +20,7 @@
<groupId>org.opengroup.osdu</groupId>
<artifactId>core-lib-azure</artifactId>
<packaging>jar</packaging>
<version>0.0.50</version>
<version>0.0.51</version>
<name>core-lib-azure</name>
<properties>
......
......@@ -27,7 +27,7 @@ import java.util.Map;
* So now order of calling the filters becomes: OrderedRequestContextFilter --> MDC filter --> ... --> TransactionLogFilter
*/
@Component
@ConditionalOnProperty(value = "logging.mdccontext.enabled", havingValue = "true", matchIfMissing = false)
@ConditionalOnProperty(value = "logging.mdccontext.enabled", havingValue = "true", matchIfMissing = true)
@Order(-104)
public class Slf4jMDCFilter implements Filter {
@Autowired
......
......@@ -36,7 +36,7 @@ import java.util.function.Function;
* For logging start and end of request.
*/
@Component
@ConditionalOnProperty(value = "logging.transaction.enabled", havingValue = "true", matchIfMissing = false)
@ConditionalOnProperty(value = "logging.transaction.enabled", havingValue = "true", matchIfMissing = true)
public final class TransactionLogFilter implements Filter {
private static final String LOGGER_NAME = "TxnLogger";
private static final List<String> WHITELIST_HEADERS = Arrays.asList(
......
......@@ -30,7 +30,7 @@ import java.util.Set;
* Checks if slf4j got bound with log4j2 correctly.
*/
@Component
@ConditionalOnProperty(value = "logging.checkSlf4jBinding.enabled", havingValue = "true", matchIfMissing = false)
@ConditionalOnProperty(value = "logging.checkSlf4jBinding.enabled", havingValue = "true", matchIfMissing = true)
public class Slf4JBindingChecker {
private final String staticLoggerBinderPath = "org/slf4j/impl/StaticLoggerBinder.class";
......
......@@ -30,7 +30,7 @@ import java.util.Map;
*/
@Component
@Primary
@ConditionalOnProperty(value = "logging.slf4jlogger.enabled", havingValue = "true", matchIfMissing = false)
@ConditionalOnProperty(value = "logging.slf4jlogger.enabled", havingValue = "true", matchIfMissing = true)
public final class Slf4JLogger implements ILogger {
private static final String DEFAULT_LOGGER_NAME = Slf4JLogger.class.getName();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment