Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
Lib
cloud
azure
OS Core Lib Azure
Commits
9b62d500
Commit
9b62d500
authored
Dec 27, 2020
by
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
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
9b62d500
...
...
@@ -20,7 +20,7 @@
<groupId>
org.opengroup.osdu
</groupId>
<artifactId>
core-lib-azure
</artifactId>
<packaging>
jar
</packaging>
<version>
0.0.5
0
</version>
<version>
0.0.5
1
</version>
<name>
core-lib-azure
</name>
<properties>
...
...
src/main/java/org/opengroup/osdu/azure/filters/Slf4jMDCFilter.java
View file @
9b62d500
...
...
@@ -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
=
fals
e
)
@ConditionalOnProperty
(
value
=
"logging.mdccontext.enabled"
,
havingValue
=
"true"
,
matchIfMissing
=
tru
e
)
@Order
(-
104
)
public
class
Slf4jMDCFilter
implements
Filter
{
@Autowired
...
...
src/main/java/org/opengroup/osdu/azure/filters/TransactionLogFilter.java
View file @
9b62d500
...
...
@@ -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
=
fals
e
)
@ConditionalOnProperty
(
value
=
"logging.transaction.enabled"
,
havingValue
=
"true"
,
matchIfMissing
=
tru
e
)
public
final
class
TransactionLogFilter
implements
Filter
{
private
static
final
String
LOGGER_NAME
=
"TxnLogger"
;
private
static
final
List
<
String
>
WHITELIST_HEADERS
=
Arrays
.
asList
(
...
...
src/main/java/org/opengroup/osdu/azure/logging/Slf4JBindingChecker.java
View file @
9b62d500
...
...
@@ -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
=
fals
e
)
@ConditionalOnProperty
(
value
=
"logging.checkSlf4jBinding.enabled"
,
havingValue
=
"true"
,
matchIfMissing
=
tru
e
)
public
class
Slf4JBindingChecker
{
private
final
String
staticLoggerBinderPath
=
"org/slf4j/impl/StaticLoggerBinder.class"
;
...
...
src/main/java/org/opengroup/osdu/azure/logging/Slf4JLogger.java
View file @
9b62d500
...
...
@@ -30,7 +30,7 @@ import java.util.Map;
*/
@Component
@Primary
@ConditionalOnProperty
(
value
=
"logging.slf4jlogger.enabled"
,
havingValue
=
"true"
,
matchIfMissing
=
fals
e
)
@ConditionalOnProperty
(
value
=
"logging.slf4jlogger.enabled"
,
havingValue
=
"true"
,
matchIfMissing
=
tru
e
)
public
final
class
Slf4JLogger
implements
ILogger
{
private
static
final
String
DEFAULT_LOGGER_NAME
=
Slf4JLogger
.
class
.
getName
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment