Logging in Spring boot with example | Logging Interview questions and Answers | Code Decode

Описание к видео Logging in Spring boot with example | Logging Interview questions and Answers | Code Decode

In this video of code decode we have explained spring boot logging with slf4j with example

Udemy Course of Code Decode on Microservice k8s AWS CICD link:
https://openinapp.co/udemycourse

Course Description Video :
https://yt.openinapp.co/dmjvd


What is Logging in Spring boot
Logging in Spring Boot refers to the practice of recording information, events, and actions within a Spring Boot application.

It plays a crucial role in understanding the behavior of the application, diagnosing issues, and monitoring its performance.

Spring Boot offers flexible logging capabilities by integrating with various logging frameworks and providing standardized ways to configure and manage logs.


How logging is done is Spring boot
Java offers several logging frameworks, including log4J, java.util.logging (JUL), tiny log, logback, and more, to simplify the logging process for developers.

A logging framework handles various tasks, such as defining where log files are stored and customizing log messages.

Spring Boot includes SLF4J by default. SLF4J, which stands for Simple Logging Facade for Java, serves as a unified interface for these logging frameworks. With just one dependency, users can seamlessly utilize any of these logging frameworks.



What are the different level of Logging
Logging frameworks provide different levels to categorize log messages based on their severity and importance. Common logging levels include:

INFO: Informational messages that signify the application's operational activities. These messages give a high-level overview of the application's state and major events, useful for keeping track of normal functioning.

WARN: Warnings indicate potential issues that could cause problems in the future or highlight situations that might need attention. They are not critical errors but are worth investigating to prevent possible errors.

ERROR: Messages at this level represent actual errors that have occurred in the application. These could include exceptions, failed operations, or other issues that require attention to ensure proper functionality.


Most Asked Core Java Interview Questions and Answers:    • Core Java frequently asked Interview ...  
Advance Java Interview Questions and Answers:    • Advance Java Interview Questions  

Java 8 Interview Questions and Answers:    • Java 8 Interview Questions(New Features)  

Hibernate Interview Questions and Answers:
   • Hibernate Interview Questions Java  

Spring Boot Interview Questions and Answers:
   • Advance Java Interview Questions  

Angular Playlist:    • Angular Course Introduction || Angular 8  
SQL Playlist:    • SQL Interview Questions and Answers  

GIT:    • GIT  

Subscriber and Follow Code Decode
Subscriber Code Decode: https://www.youtube.com/c/CodeDecode?...
LinkedIn :   / codedecodeyoutube  
Instagram:   / codedecode25  

#springboot #springbootlogging #codedecode

Комментарии

Информация по комментариям в разработке