Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
1k views

Logging in each method vs Logging with Aspect? [duplicate]

Whenever I write an API or program with Spring Boot, my logging strategy is usually like below: @Service public class ShortLinkServiceImpl implements ShortLinkService { private final Logger ...
Aksoy's user avatar
  • 131
3 votes
4 answers
12k views

How to save requests and responses to database in spring boot

I would like to write an aspect or something like that and whenever a request comes to the controller it saves the request and the response to the database. First question is what type I should use in ...
Aksoy's user avatar
  • 131
5 votes
2 answers
10k views

Use AOP in a Spring Boot app to log methods calls and their parameters

Rather than manually writing code such as public void someMethod(Object someArg, Object otherArg) { logger.trace("someMethod invoked with arguments {}, {}", someArg, otherArg); /...
Antonio Dragos's user avatar
1 vote
1 answer
3k views

Springboot Event Logging

I have a scheduled task in a fixed rate, that reads a queue. Each message that comes from the queue has an ID. I wanna know if it's possible split the log by ID, appending to a different file. I was ...
DTodt's user avatar
  • 380
0 votes
1 answer
699 views

Spring AOP logging

I have a j2ee web application running on Spring framework. I want to implement logging using log4j and Spring's AOP. I am able to log the public methods using custom annotation. I am not able to log ...
bookofcodes's user avatar