Skip to content

Commit fba6706

Browse files
committed
Move the Kotlin logger to top level
1 parent bba2298 commit fba6706

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

complete-kotlin/src/main/kotlin/com/example/consumingrest/ConsumingRestApplication.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@ import org.springframework.context.annotation.Profile
1010
import org.springframework.web.client.RestTemplate
1111
import org.springframework.web.client.getForObject
1212

13+
private val log = LoggerFactory.getLogger(ConsumingRestApplication::class.java)
14+
1315
@SpringBootApplication
1416
class ConsumingRestApplication {
1517

16-
companion object {
17-
private val log = LoggerFactory.getLogger(ConsumingRestApplication::class.java)
18-
}
19-
2018
@Bean
2119
fun restTemplate(builder: RestTemplateBuilder): RestTemplate {
2220
return builder.build()

0 commit comments

Comments
 (0)