On 11/07/2012 15:48, sethfuller wrote:
> Any idea why appName is not set for log4j configuration, but is set for the
> environments configuration? Is there another variable I could use to get the
> application name?
The log4j closure gets evaluated separately from the rest of
Config.groovy, and doesn't have the same variables available to it. I
believe grails.util.Metadata is usable within the closure, so try
Metadata.current.applicationName.
Ian
--
Ian Roberts | Department of Computer Science
[hidden email] | University of Sheffield, UK
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email