Skip to Main Content
Spring Boot and Angular
book

Spring Boot and Angular

by Devlin Basilan Duldulao, Seiji Ralph Villafranca
December 2022
Beginner to intermediate content levelBeginner to intermediate
438 pages
8h 53m
English
Packt Publishing
Content preview from Spring Boot and Angular

8

Logging Events in Spring Boot

In the previous chapter, we discussed the ideas, features, and implementation of Cross-Origin Resource Sharing (CORS) in securing our application. We also learned about JSON Web Tokens (JWTs) and how to generate one by creating authentication endpoints.

This chapter will focus on logging events in our Spring Boot application. We will discuss the popular packages for logging in to and configuring Spring Boot, where to save them, and what to do with logs as we develop our application.

In this chapter, we will cover the following topics:

  • Getting started with SLF4J and Log4j2
  • Setting up SLF4J and Log4j2
  • Using logs

Technical requirements

The finished version of this chapter’s code may be seen at the following link: ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Full-Stack React with Spring Boot

Full-Stack React with Spring Boot

Andy Olsen
Spring Boot Fundamentals

Spring Boot Fundamentals

Bharath Thippireddy

Publisher Resources

ISBN: 9781803243214Supplemental Content