org.kuali.ole.sys.context

Class Log4jConfigurer

    • Method Detail

      • configureLogging

        public static final void configureLogging(boolean doStartupStatsLogging)
        If you set the system property -Dlog4j.debug, you will see that the isOverride() method runs code that issues logging statements. This means that log4 has already initialized itself and has issued a few logging statements prior to the point where this method attempts to configure log4j with a custom log4j.properties.

        So this method is re-configuring log4j immediately after log4j uses its internal procedures to automatically configure itself.

        Kinda funky, but it seems to work ok.

        Logging statements issued after this method finishes honor the new settings.
      • isOverride

        protected static boolean isOverride()
        Return true if we need to override the default log4j configuration with custom settings. False otherwise

Copyright © 2004–2014 The Kuali Foundation. All rights reserved.