Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 71563 invoked from network); 13 Jan 2009 15:46:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jan 2009 15:46:16 -0000 Received: (qmail 1316 invoked by uid 500); 13 Jan 2009 15:46:10 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 1285 invoked by uid 500); 13 Jan 2009 15:46:10 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 1274 invoked by uid 99); 13 Jan 2009 15:46:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jan 2009 07:46:10 -0800 X-ASF-Spam-Status: No, hits=2.4 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gccostabr@gmail.com designates 64.233.170.185 as permitted sender) Received: from [64.233.170.185] (HELO rn-out-0910.google.com) (64.233.170.185) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jan 2009 15:46:02 +0000 Received: by rn-out-0910.google.com with SMTP id 45so55524rnw.14 for ; Tue, 13 Jan 2009 07:45:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=3ODvGnZ2AVjLoxRTFs4cuX4HYiNyuWS8so+f2teOzAg=; b=XYQSbC+X+Mqh5z9ASq1/oZ4oDWxLmaBpsNBe+oPXOVHps9MIOZYGJGd1czt4QOwH7T zkniJro6AkZPlkBGSqu/A6zf/V/uqStiITLBOn+aCw4mTzFrcOelzk0FgGSs8/WFUvnk 4ff/ojt/4S/0TeUgzUeiVaLP6XyQo6WKdKEug= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=EyjgVJiXWEK3kJzew8nwIN9f9v1ZYO9ESh6iYxcRtAASupzuVrZv68HpTx4lYvq/RT GZf8itR4951YHpEIeOGSXQJRjFYhgI3AeCC59ij826Rdr2YLQ3c6UJF0R0Jf5wkHREKS 1YmJ3EqVCsDx9RJlSnYqoyHYYB2EM7W1zA+S0= Received: by 10.231.20.3 with SMTP id d3mr2113116ibb.18.1231861527793; Tue, 13 Jan 2009 07:45:27 -0800 (PST) Received: by 10.231.33.4 with HTTP; Tue, 13 Jan 2009 07:45:27 -0800 (PST) Message-ID: Date: Tue, 13 Jan 2009 13:45:27 -0200 From: "Guilherme Costa" To: "Log4J Users List" Subject: Re: logging start on last log file intended of current log file In-Reply-To: <838648.5455.qm@web54503.mail.re2.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_125_23882464.1231861527785" References: <21433602.post@talk.nabble.com> <478297.31944.qm@web54503.mail.re2.yahoo.com> <21437931.post@talk.nabble.com> <838648.5455.qm@web54503.mail.re2.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_125_23882464.1231861527785 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline And how would you know witch line is from witch app??? I am working on a SocketServer and all remote apps with SocketAppender, but i need to know on the big file on the server, where the messages are coming from! Any ideas? Thanks, Gui On Tue, Jan 13, 2009 at 1:41 PM, wrote: > Basic answer... don't have two apps logging to the same file. The best way > that's usually promoted is to use the SocketAppender ( > http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/net/SocketAppender.html). > So both apps log to a server which is a simple single app that logs to the > file. > > Have a read through http://timarcher.com/?q=node/10. It should give you > enough information to set it up. > > > > > ________________________________ > From: Haider > To: log4j-user@logging.apache.org > Sent: Tuesday, 13 January, 2009 15:27:19 > Subject: Re: logging start on last log file intended of current log file > > > yes this is right, i am using unix with 2 apps, this problem is started > when > i used DWR in my App, so what do u suggest. How to handle it. > > > dhallammail-log4j wrote: > > > > Is there another application logging to the same file? > > > > If you're running on a *nix o/s, the file handles are the file number and > > not the file name. So if another app has rolled the file, your app is > > likely to still be pointing at the orignal file which has now been > > renamed. > > > > > > > > > > ________________________________ > > From: Haider > > To: log4j-user@logging.apache.org > > Sent: Tuesday, 13 January, 2009 11:19:53 > > Subject: logging start on last log file intended of current log file > > > > > > i am using log4j is it working file, with following configuration > > log4j.appender.dest4=org.apache.log4j.DailyRollingFileAppender > > log4j.additivity.dest4=false > > log4j.appender.dest4.File=debuglog.txt > > log4j.appender.dest4.DatePattern='.'yyyy-MM-dd > > log4j.appender.dest1.ImmediateFlush=true > > log4j.appender.dest4.layout=org.apache.log4j.PatternLayout > > log4j.appender.dest4.layout.ConversionPattern=[%-5p]-(%c:%L)-%m%n > > > > Logging is working fine, all log write into debuglog.txt file, after 2 > to > > 3 > > hours its started logging into last day of log file Intended of > > current > > log file. > > > > -- > > View this message in context: > > > http://www.nabble.com/logging-start-on-last-log-file-intended-of-current-log-file-tp21433602p21433602.html > > Sent from the Log4j - Users mailing list archive at Nabble.com. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org > > For additional commands, e-mail: log4j-user-help@logging.apache.org > > > > > > > > > > -- > View this message in context: > http://www.nabble.com/logging-start-on-last-log-file-intended-of-current-log-file-tp21433602p21437931.html > Sent from the Log4j - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org > For additional commands, e-mail: log4j-user-help@logging.apache.org > > > > ------=_Part_125_23882464.1231861527785--