Thanks for the tip Noel. I will be using it for now.

Also I was wondering if someone knew how to specify a different target
in the file environment.xml (based on excalibur logger) to send a
System.out log  message to the james console instead of a file.

The following snippet seems to me to be the best point of attack. I
don't know how to modify this yet and so need the groups help here.

    <targets>
      <file id="pop3server-target">
        <filename>${app.home}/logs/pop3server.log</filename>
        <format>%{time:dd/MM/yy hh:mm:ss} %5.5{priority} %{category}:
%{message}\n%{throwable}</format>
        <append>true</append>
      </file>
      <file id="smtpserver-target">
        <filename>${app.home}/logs/smtpserver.log</filename>
        <format>%{time:dd/MM/yy hh:mm:ss} %5.5{priority} %{category}:
%{message}\n%{throwable}</format>
        <append>true</append>
      </file>

Thanks again,
Viru
 
From: Noel J. Bergman <[EMAIL PROTECTED]>
Subject: sending debug messages to console?
Date: Tue, 8 Oct 2002 17:11:18 -0400
Content-Type: text/plain;
        charset="US-ASCII"


Viru,

On linux you can simply run "tail -f /opt/james/apps/james/logs/*" to
monitor the logs.  If you just want to monitor part of the system, just
monitor that log, e.g., smtpserver.log.  There is a patch submitted
(hopefully in the CVS soon) that if you are at INFO will emit:

 Successfully spooled mail from <sender> for <recipients>

for incoming mail.  If you are at DEBUG, you'll see the entire SMTP
transaction.

        --- Noel

-----Original Message-----
From: Virender Singh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 08, 2002 15:11
To: [EMAIL PROTECTED]
Subject: sending debug messages to console?


How can I get log messages to show up on the james cmd prompt console
when a email is received/delivered by the james server ? This helps me
easily take a peak at the console to see what it's doing.

Thanks,
Viru


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


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

Reply via email to