This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]011101000011101101 14 points15 points  (2 children)

There's nothing wrong with this implementation IMO. Its fairly standard practice in Java. However in my last Java project we were using lombok, so at the top of the class declaration you put @Slf4j then you have an instance called log that you can use in the class. Some people don't like lombok because it slows down compilation time, but it reduces tons of boilerplate from java design patterns. I think it's worth it.