Commit d328431a authored by harshit aggarwal's avatar harshit aggarwal
Browse files

Updating readme with instructions to support new logging changes

parent 345aa2bf
Pipeline #5606 failed with stage
in 1 minute and 54 seconds
......@@ -65,3 +65,17 @@ You need to connect to our feed on [Azure DevOps](https://slb-swt.visualstudio.c
</dependencies>
</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 required 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 @@
<groupId>org.opengroup.osdu</groupId>
<artifactId>core-lib-azure</artifactId>
<packaging>jar</packaging>
<version>0.0.17</version>
<version>0.0.18</version>
<name>core-lib-azure</name>
<properties>
......
......@@ -3,12 +3,14 @@ package org.opengroup.osdu.azure.di;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Lazy;
/**
* A configuration bean class to set up CosmosDb variables.
*/
@Configuration
@Getter
@Lazy
public class CosmosDBConfiguration {
@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