Hello Sebastien,<br><br>Excellent, I will give this a try. Thanks for your response.<br><br>S.D.<br><br><b><i>Sebastien Pennec &lt;sebastien@qos.ch&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Hello Samuel,<br><br>Thanks for trying logback!<br><br>The RollingFileAppender needs a TriggeringPolicy object to know when to roll the <br>active output file.<br>In brief, a TriggeringPolicy controls the conditions under which roll-over occurs. <br>Such conditions include time of day, file size, an external event, the log request or <br>a combination thereof.<br><br>A working configuration file for a RollingFileAppender would be:<br><br><configuration><br>   <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"><br>     <param name="File" value="/path/to/your/file.log"><br>     <rollingPolicy class="ch.qos.logback.core.rolling.SizeBasedRollingPolicy"><br>       <param
 name="MaxFileSize" value="5MB"><br>     </rollingPolicy><br>     <layout class="ch.qos.logback.classic.PatternLayout"><br>       <param name="Pattern" value="%-4relative [%thread] %-5level %class - %msg%n"><br>     </layout><br>   </appender><br><br>   <root><br>     <level value="debug"><br>     <appender-ref ref="FILE"><br>   </appender-ref><br></level><br><br>With this configuration, the file would be rolled each time it reaches 5MB.<br><br>When I look at the configuration file that you sent, something seems strange to me:<br>Why do you configure two Loggers with the same Appender and one of them with the <br>Additivity flag set to false? One would obtain the same result simply by attaching <br>the RollingFileAppender to the root logger.<br><br>Hope this helps you get on track with logback. Do not hesitate to write again if you <br>run into trouble.<br><br>Sébastien<br><br>-- <br>Sébastien Pennec<br>sebastien@qos.ch<br><br>Logback: The reliable, generic, fast and
 flexible logging framework for Java.<br><br>Samuel Doyle a écrit :<br>&gt; Hello,<br>&gt; <br>&gt; I'm new to logback but read your documentation, I an not receiving any <br>&gt; output to my logfile. Here is my configuration file, following this is <br>&gt; the output from logback to the console. The only thing I notice is a <br>&gt; warning about a TriggerPolicy. If this is the case do you have example <br>&gt; syntax?<br>&gt; ---<br>&gt; <br>&gt; <br>&gt; <br>&gt; <configuration><br>&gt;  <br>&gt;   <appender name="bitranlog"><br>&gt; class="ch.qos.logback.core.rolling.RollingFileAppender"&gt;<br>&gt;     <param name="append" value="true"><br>&gt;     <param name="MaxBackupIndex" value="1"><br>&gt;     <param name="file" value="/tmp/bitran.log"><br>&gt;     <param name="MaxFileSize" value="5MB"><br>&gt;     <layout class="ch.qos.logback.classic.PatternLayout"><br>&gt;       <param name="pattern" value="%d [%-15.15t] %-5p %-30.30c{1} - %m%n"><br>&gt;    
 </layout><br>&gt;   </appender><br>&gt;    <br>&gt;   <logger name="org.accma.concentrator.services.bitran.BiTranService"><br>&gt; additivity="false"&gt;<br>&gt;     <level value="debug"><br>&gt;     <appender-ref ref="bitranlog"><br>&gt;   </appender-ref><br>&gt;  <br>&gt;   <root><br>&gt;     <level value="debug"><br>&gt;      <appender-ref ref="bitranlog"><br>&gt;   </appender-ref><br>&gt; <br>&gt; </level><br>&gt; <br>&gt; ---<br>&gt; Here is console output when using LoggerStatusPrinter:<br>&gt; ---<br>&gt; <br>&gt; startElement [configuration]<br>&gt; startElement [appender]<br>&gt; startElement [param]<br>&gt; startElement [param]<br>&gt; LOGBACK: No context given for ch.qos.logback.core.util.PropertySetter@8c5ea2<br>&gt; startElement [param]<br>&gt; startElement [param]<br>&gt; LOGBACK: No context given for <br>&gt; ch.qos.logback.core.util.PropertySetter@198defc<br>&gt; startElement [layout]<br>&gt; startElement [param]<br>&gt; startElement [logger]<br>&gt;
 startElement [level]<br>&gt; startElement [appender-ref]<br>&gt; startElement [root]<br>&gt; startElement [level]<br>&gt; startElement [appender-ref]<br>&gt; INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - <br>&gt; Ignoring debug attribute.<br>&gt; INFO in ch.qos.logback.core.joran.action.AppenderAction - About to <br>&gt; instantiate appender of type [ch<br>&gt; .qos.logback.core.rolling.RollingFileAppender]<br>&gt; INFO in ch.qos.logback.core.joran.action.AppenderAction - Appender named <br>&gt; as [bitranlog]<br>&gt; WARN in ch.qos.logback.core.rolling.RollingFileAppender[bitranlog] - <br>&gt; Please set a TriggeringPolicy<br>&gt; for the RollingFileAppender named bitranlog<br>&gt; INFO in ch.qos.logback.core.joran.action.AppenderAction - Popping <br>&gt; appender named [bitranlog] from t<br>&gt; he object stack<br>&gt; INFO in ch.qos.logback.classic.joran.action.LevelAction - <br>&gt; org.accma.concentrator.services.bitran.Bi<br>&gt; TranService level
 set to DEBUG<br>&gt; INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching <br>&gt; appender named [bitranlog to<br>&gt;  Logger[org.accma.concentrator.services.bitran.BiTranService]<br>&gt; INFO in ch.qos.logback.classic.joran.action.LevelAction - root level set <br>&gt; to DEBUG<br>&gt; INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching <br>&gt; appender named [bitranlog to<br>&gt;  Logger[root]<br>&gt; <br>&gt; <br>&gt; Thanks, S.D.<br>&gt; <br>&gt; <br>&gt; ------------------------------------------------------------------------<br>&gt; <br>&gt; _______________________________________________<br>&gt; Logback-user mailing list<br>&gt; Logback-user@qos.ch<br>&gt; http://qos.ch/mailman/listinfo/logback-user<br>_______________________________________________<br>Logback-user mailing list<br>Logback-user@qos.ch<br>http://qos.ch/mailman/listinfo/logback-user<br></root></level></logger></configuration></root></configuration></blockquote><br>