> > you mean it's just enough to change "hh" to "HH"
> > in pattern="-yyyy-MM-dd-hh-mm" inside environment.xml
>
> Yes, that is exactly what I mean.  :-)
>
> > With log rotation, this morning I found something strange in my log
> > directory: all log messages written into all kinds of log files after
> > midnight were going into different files, one for each different minute
>
> Yes, I reported that bug to Avalon last week.  It seems to happen
> only with
> my configuration that uses both <date> and <size>.  If I just use
> <date>, it
> doesn't happen.  They are in the process of preparing a new
> Release version
> of LogKit, and will make sure that this is fixed before that happens.
>
> > My environment.xml file is the one coming from the installation,
> > having changed just a couple of "INFO" into "WARN".
>
> I just downloaded v2.1.1.a5 to doublecheck.  The log rotation in that
> release is:
>
>       <file id="smtpserver-target">
>         <filename>${app.home}/logs/smtpserver</filename>
>         <format>...</format>
>         <append>true</append>
>         <rotation type="unique" pattern="-yyyy-MM-dd" suffix=".log">
>           <or>
>             <date>dd</date>
>           </or>
>         </rotation>
>       </file>
>
> So if you have the "-yyyy-MM-dd-hh-mm" pattern, and are seeing the bug you
> reported, you must have changed the rotation.
>
>       --- Noel

The file I downloaded was
"/builds/jakarta-james/nightly/bin/james-binary-2.1.1a5.zip 29-Jan-2003
20:38 5.9M", the environment.xml file was last modified on 27/01/2003 2.23
(11,227 bytes) and, believe me, the log rotation was :-)
      <file id="spoolmanager-target">
        <filename>${app.home}/logs/spoolmanager</filename>
        <format>%{time:dd/MM/yy HH:mm:ss} %5.5{priority} %{category}:
%{message}\n%{throwable}</format>
        <append>true</append>
        <rotation type="unique" pattern="-yyyy-MM-dd-hh-mm" suffix=".log">
          <or>
            <date>dd</date>
            <size>10485760</size>
          </or>
        </rotation>
      </file>

I checked right now the
"/builds/jakarta-james/nightly/bin/james-binary-2.1.1a5.zip" file, and it's
still like that. I may have downloaded and be using a wrong one then? Let me
know please.

Anyhow, I will set the file as you show in this message.

Thanks,

Vincenzo



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to