Noel, I just tried your tail tip and must say that I failed to appreciate earlier how good the tip was.
Hint for windows users: tail for windows is available at http://unxutils.sourceforge.net Sorry for the confusion caused by my earlier email. What I meant was that I wanted the log messages to go to the "command window within which james is launched" instead of the log files. With your tail tip in hand I guess the rest of my argument is mute. Thanks for your response again Noel, Viru -----Original Message----- From: Noel J. Bergman [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 12:10 AM To: James Users List; [EMAIL PROTECTED] Subject: RE: sending debug messages to console? System.out can be changed via System.setOut(PrintStream), if you are so inclined to have a log file attached, but I don't think that's at all what you mean, since System.out DOES go to the "console." And there is no "james console", unless you mean a command window within which you launch james. Which is generally a really bad idea for a service. So at this point, I have no idea what you're talking about now. However, if you want to write your own Avalon logger subclass to write everything to System.out instead of the log files, by all means do as you wish. Personally, I think that it is bad idea. There could be some useful enhancements to Avalon's logging, e.g., support for log rotation, but writing logs to the console when they can just as easily be presented via tail makes little sense to me. --- Noel -----Original Message----- From: Virender Dogra [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 09, 2002 13:56 To: [EMAIL PROTECTED] Subject: re: sending debug messages to console? 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]> --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.393 / Virus Database: 223 - Release Date: 9/30/2002 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
