Skip to content

Commit 23ec60d

Browse files
authored
freshness update for article
1 parent 550ff8f commit 23ec60d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

articles/active-directory/develop/msal-logging-java.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ ms.service: active-directory
99
ms.subservice: develop
1010
ms.topic: conceptual
1111
ms.workload: identity
12-
ms.date: 01/25/2021
12+
ms.date: 11/25/2022
1313
ms.author: dmwendia
14-
ms.reviewer: saeeda, jmprieur
14+
ms.reviewer: saeeda, jmprieur, engagement-fy23
1515
ms.custom: aaddev
1616
---
17+
1718
# Logging in MSAL for Java
1819

1920
[!INCLUDE [MSAL logging introduction](../../../includes/active-directory-develop-error-logging-introduction.md)]
@@ -24,7 +25,7 @@ MSAL for Java allows you to use the logging library that you are already using w
2425

2526
This article shows how to enable MSAL4J logging using the logback framework in a spring boot web application. You can refer to the [code sample](https://github.com/Azure-Samples/ms-identity-java-webapp/tree/master/msal-java-webapp-sample) for reference.
2627

27-
1. To implement logging, include the `logback` package in the _pom.xml_ file.
28+
1. To implement logging, include the `logback` package in the *pom.xml* file.
2829

2930
```xml
3031
<dependency>
@@ -34,7 +35,7 @@ This article shows how to enable MSAL4J logging using the logback framework in a
3435
</dependency>
3536
```
3637

37-
2. Navigate to the _resources_ folder, and add a file called _logback.xml_, and insert the following code. This will append logs to the console. You can change the appender `class` to write logs to a file, database or any appender of your choosing.
38+
2. Navigate to the *resources* folder, and add a file called *logback.xml*, and insert the following code. This will append logs to the console. You can change the appender `class` to write logs to a file, database or any appender of your choosing.
3839

3940
```xml
4041
<?xml version="1.0" encoding="UTF-8"?>
@@ -49,7 +50,7 @@ This article shows how to enable MSAL4J logging using the logback framework in a
4950
</root>
5051
</configuration>
5152
```
52-
3. Next, you should set the _logging.config_ property to the location of the _logback.xml_ file before the main method. Navigate to _MsalWebSampleApplication.java_ and add the following code to the `MsalWebSampleApplication` public class.
53+
3. Next, you should set the *logging.config* property to the location of the *logback.xml* file before the main method. Navigate to *MsalWebSampleApplication.java* and add the following code to the `MsalWebSampleApplication` public class.
5354

5455
```java
5556
@SpringBootApplication
@@ -66,7 +67,7 @@ This article shows how to enable MSAL4J logging using the logback framework in a
6667
}
6768
```
6869

69-
In your Azure B2C tenant, you will need separate app registrations for the web app and the web API. For app registration and exposing the web API scope, you can follow the steps in [Configure authentication in a sample web app that calls a web API by using Azure AD B2C](/azure/active-directory-b2c/configure-authentication-sample-web-app-with-api).
70+
In your tenant, you'll need separate app registrations for the web app and the web API. For app registration and exposing the web API scope, follow the steps in the scenario [A web app that authenticates users and calls web APIs](/scenario-web-app-call-api-overview).
7071

7172
For instructions on how to bind to other logging frameworks, see the [SLF4J manual](http://www.slf4j.org/manual.html).
7273

0 commit comments

Comments
 (0)