All Questions
5 questions
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 ...
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 ...
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);
/...
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 ...
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 ...