Commit f0fa8b37 authored by Kishore Battula's avatar Kishore Battula
Browse files

Merge branch 'haaggarw/updateReadme' into 'master'

Updating readme with instructions to support new logging changes

See merge request !17
parents 345aa2bf 13aa8135
Pipeline #5610 passed with stages
in 7 minutes and 40 seconds
...@@ -65,3 +65,17 @@ You need to connect to our feed on [Azure DevOps](https://slb-swt.visualstudio.c ...@@ -65,3 +65,17 @@ You need to connect to our feed on [Azure DevOps](https://slb-swt.visualstudio.c
</dependencies> </dependencies>
</project> </project>
``` ```
## Changes to support newly Added transaction logger and slf4jlogger
The consumer service might run into multiple logger bindings error on start up
which can be fixed by excluding some of the logger dependencies.
Note: Below are reference PRs for exclusion and might change from service to service
Refer this [MR](https://community.opengroup.org/osdu/platform/security-and-compliance/entitlements-azure/-/merge_requests/13) as reference on how to exclude dependencies along with how to enable the
Enabled transaction logger and slf4jlogger
## Environment variables to be added in application.properties to consume the TenantFactoryImpl
| name | value | description |
| --- | --- | --- |
| `tenantInfo.container.name` | `TenantInfo` | cosmos container name |
| `azure.cosmosdb.database` | ex `dev-osdu-r2-db` | cosmos databse name |
\ No newline at end of file
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<groupId>org.opengroup.osdu</groupId> <groupId>org.opengroup.osdu</groupId>
<artifactId>core-lib-azure</artifactId> <artifactId>core-lib-azure</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<version>0.0.17</version> <version>0.0.18</version>
<name>core-lib-azure</name> <name>core-lib-azure</name>
<properties> <properties>
......
...@@ -3,12 +3,14 @@ package org.opengroup.osdu.azure.di; ...@@ -3,12 +3,14 @@ package org.opengroup.osdu.azure.di;
import lombok.Getter; import lombok.Getter;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Lazy;
/** /**
* A configuration bean class to set up CosmosDb variables. * A configuration bean class to set up CosmosDb variables.
*/ */
@Configuration @Configuration
@Getter @Getter
@Lazy
public class CosmosDBConfiguration { public class CosmosDBConfiguration {
@Value("${tenantInfo.container.name}") @Value("${tenantInfo.container.name}")
......
#
# Copyright © Microsoft Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Azure CosmosDB configuration
tenantInfo.container.name=TenantInfo
azure.cosmosdb.database=${cosmosdb_database}
\ No newline at end of file
Supports Markdown
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