You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -24,7 +25,7 @@ MSAL for Java allows you to use the logging library that you are already using w
24
25
25
26
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.
26
27
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.
28
29
29
30
```xml
30
31
<dependency>
@@ -34,7 +35,7 @@ This article shows how to enable MSAL4J logging using the logback framework in a
34
35
</dependency>
35
36
```
36
37
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.
38
39
39
40
```xml
40
41
<?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
49
50
</root>
50
51
</configuration>
51
52
```
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.
53
54
54
55
```java
55
56
@SpringBootApplication
@@ -66,7 +67,7 @@ This article shows how to enable MSAL4J logging using the logback framework in a
66
67
}
67
68
```
68
69
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).
70
71
71
72
For instructions on how to bind to other logging frameworks, see the [SLF4J manual](http://www.slf4j.org/manual.html).
0 commit comments