python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Try Catch inside function with return statement
Hello I have a function that has a return statement. This is the function:
public List<Map<String, Object>> findByNumber(String telefon) throws Exception {
JdbcTemplate jdbcTemplate = new...
JohnNewman
Votes: 0
Answers: 1
How to ignore/mock Slf4j log lines?
I upgrade Spring Boot from 2.5.10 to 2.5.12 and it brought a breaking change for me in logback https://github.com/spring-projects/spring-boot/releases/tag/v2.5.11
A few of my unit tests (using Mockito...
Saif
Votes: 0
Answers: 1
How to disable spring sleuth in a certain log level
I added the sleuth to a microservice and successfully get the Trace Id and span Id, but as you can see after sleuth, missing a part of the info before the log level in the log line.
I think maybe I ca...
Amin Shahimian
Votes: 0
Answers: 0
logging multiple messages with log4j2 binded with slf4j
I would like to achieve something like
Logger logger = LoggerFactory.getLogger(MyClassname.class);
logger.info("message1", "message2");
The logs should look like
message1 "so...
Ayush Gupta
Votes: 0
Answers: 1