Skip to content

Commit

Permalink
more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
testersen committed Nov 11, 2023
1 parent d0096e9 commit 0b7e5ec
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class Configure {
configuration.fallbackToJsonOnError
)

configuration.debug("Activating theme ${theme.javaClass.name}")

val appender = ConsoleAppender<ILoggingEvent>()
appender.context = loggerContext
appender.name = "console"
Expand Down Expand Up @@ -66,6 +68,8 @@ class Configure {
loggerContext.maxCallerDataDepth = 2
loggerContext.isPackagingDataEnabled = true

configuration.debug("Configuration over")

return configuration
}
}
Expand Down Expand Up @@ -104,6 +108,7 @@ private fun getTheme(configuration: AutoconfLogbackConfiguration, path: Path?, f
val instance = constructor.newInstance()
configuration.debug("Created instance")
if (instance !is Theme) throw Exception("Provided theme-class is not a Theme")
configuration.debug("Returning theme ${clazz.name}")
return instance
}
configuration.debug("No theme found, falling back to json")
Expand Down

0 comments on commit 0b7e5ec

Please sign in to comment.