Announcement Announcement Module
Collapse
No announcement yet.
Spring log configuration has ERROR level but PropertiesLoaderSupport class outputs Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring log configuration has ERROR level but PropertiesLoaderSupport class outputs

    Hi,

    I have a class which extends from PropertyPlaceholderConfigurer(which extends from PropertyResourceConfigurer which extends from PropertiesLoaderSupport). My log configuration has Spring log level to ERROR and root log level to INFO. Mi logback.xml:
    <configuration>
    ...
    <!-- SpringFramework logger -->

    <logger name="org.springframework">

    <level value="error" />

    </logger>



    <!-- Root logger -->

    <root level="info">

    <appender-ref ref="stdout" />

    <appender-ref ref="logFile" />

    </root>

    </configuration>

    When calling to my class, I am seeing:
    [INFO] ...services.impl.ConfigurationServiceImpl[PropertiesLoaderSupport.java:177] | Loading properties file from class path resource [main.properties]

    This line outputs twice. It seems as if PropertiesLoaderSupport takes the root log configuration instead of spring log. And more, I really do not understand why outputs twice(since there is just one log with INFO level).
    Any help will be really appreciated.
Working...
X