I'm working on a util class. And trying to put a logger in it. But import logger from LoggerFactory is not appearing in the import list. What can be causing this issue as the same import is available in another file as an import. So, dependency is not an issue in this case.
Below are the imports I'm talking about.
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Solved! Go to Solution.
Views
Replies
Total Likes
The issue was the I was not initiating the variable itself. My bad.
private static final Logger LOGGER = LoggerFactory.getLogger(SessionManagementUtils.class);
Views
Replies
Total Likes
hello @goyalkritika
Can you please try by creating a fresh workspace? Something might be corrupted.
- Commit the file
- Take a latest pull of the code in separate folder
- Import project in IDE and check
Views
Replies
Total Likes
Did that. It couldn't resolve the issue.
Views
Replies
Total Likes
The issue was the I was not initiating the variable itself. My bad.
private static final Logger LOGGER = LoggerFactory.getLogger(SessionManagementUtils.class);
Views
Replies
Total Likes
Views
Likes
Replies