Hi, I am facing the problem with substituteLogger. I have been searching
for a solution, and kind got the hint that I should use some second-step
configuration. I did read http://www.slf4j.org/codes.html#substituteLogger

So far I got the understanding that this happens when logback is not all
ready and loaded into memory, and slf4j is instantiating a logger instance.
But if I look at the log, it looks like logback is all configured before
this error message appears. ??????

I have attached my logback.xml and a logfile containing the interesting
part.

SLF4J 1.7.3
logback 1.0.9
JBoss 7.1.1 Final
	<configuration scan="true" scanPeriod="30 seconds" debug="true" > 
    <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
        <target>System.out</target>
        <encoder>
            <pattern>[%p] %d [%c{1}] - %m%n</pattern>
        </encoder>
    </appender>
        
    <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <file>${JBOSS_HOME}/standalone/log/jsi.log</file>
    
	  		<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <fileNamePattern>${JBOSS_HOME}/standalone/log/jsi.roll.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
	      	<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
        		<maxFileSize>100MB</maxFileSize>
      		</timeBasedFileNamingAndTriggeringPolicy> 
      		<maxHistory>30</maxHistory>
	  		</rollingPolicy>
	  	
        <append>true</append>
        <encoder>
            <pattern>[%p] %d [%c] - %m%n</pattern>
        </encoder>
    </appender>
  
    <root level="DEBUG">
        <appender-ref ref="CONSOLE"/>
        <appender-ref ref="FILE"/>
    </root>
       
</configuration> 

Attachment: partOfLogFile.log
Description: Binary data

_______________________________________________
slf4j-user mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/slf4j-user

Reply via email to