윤동환
07/25/2023, 1:28 PMoshai
07/26/2023, 4:41 PM윤동환
07/27/2023, 6:05 AM@Service
class SomeBusinessService {
private val logger = KotlinLogging.logger {}
fun execute() {
// do something
}
}
oshai
07/27/2023, 10:06 AM@Service
might be a singleton or not, you don't want to tie the logger lifecycle to that (in case you change in the future). so out of the class is better.