Complete the code to log an informational message using Spring Boot's Logger.
logger.[1]("Application started successfully.");
The info level is used for general informational messages that highlight the progress of the application.
Complete the code to log a warning message about low disk space.
logger.[1]("Disk space is running low.");
The warn level is used to indicate a potential problem or important situation that should be noticed.
Fix the error in the code to log a detailed trace message.
logger.[1]("Entering method processData with parameters.");
The trace level is the most detailed and is used for very fine-grained debugging information.
Fill both blanks to log an error message with an exception.
logger.[1]("Failed to save data.", [2]);
The error level is used for serious issues. The exception object is passed as the second argument to log the stack trace.
Fill all three blanks to create a debug log that shows the user ID and action performed.
logger.[1]("User [2] performed [3] action.");
The debug level is used for detailed information useful during development. The placeholders {} are used to insert variables in the log message. Here, the action is 'login'.