A note about logging configuration

Cantor, Scott cantor.2 at osu.edu
Mon Jun 23 21:19:55 EDT 2014


On 6/23/14, 9:13 PM, "Tom Zeller" <tzeller at dragonacea.biz> wrote:
>
>Well, I guess we can replace %{ with ${ in the LogbackLoggingService when
>it reads the property resource.

We could, but using ${idp.home} does work in the properties file, because
of where we're loading the properties. Since they're loaded in the root of
all roots, the Property plugin to Spring there is the default one that
looks for ${}. So the nested properties get replaced up front.

Except for the logging case, %{} also works, because that gets left until
the subcontexts do their property replacement, and they recognize the
other delimiter and resolve the nested part.

So both work, it just changes where/when the nesting is resolved.

We can either brute force something in code, or just document that the
syntax in idp.properties is ${} and in XML or any user-supplied property
files down lower it's %{}

I suppose there's a decent argument to do it in the Logging code as you
suggest, particularly since that's IdP code. It's more consistent at least.

-- Scott




More information about the dev mailing list