Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 97551 invoked from network); 13 Jan 2009 17:14:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jan 2009 17:14:59 -0000 Received: (qmail 15724 invoked by uid 500); 13 Jan 2009 17:14:53 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 15704 invoked by uid 500); 13 Jan 2009 17:14:53 -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 15692 invoked by uid 99); 13 Jan 2009 17:14:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jan 2009 09:14:53 -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 (nike.apache.org: domain of gccostabr@gmail.com designates 74.125.46.156 as permitted sender) Received: from [74.125.46.156] (HELO yw-out-1718.google.com) (74.125.46.156) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jan 2009 17:14:43 +0000 Received: by yw-out-1718.google.com with SMTP id 5so49800ywr.40 for ; Tue, 13 Jan 2009 09:14:22 -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=cvKC33K6Vj0hh7dyo6GBB7imjRyl/hgDLx8qiPpjInU=; b=oDZiinJH6/Zxqm7bbmpWEuarTr2BLc8P6tlq2foH/MMfyktDMC/S/JZs6s11YNesfw nZZoDizqtlM3YwHcZpJJxflazG+wToibe8nH/ucg7RhDX56C5opZfmeCnm5C6QSnh+Fc 4eiVOMkyAJUts9i5goNhO0TSUJJI/JomLkGxo= 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=EKHr0WY36K+QZ4WVrfoxuq+IS+rSmQ8M/4KuGLpOxz0WKS6QbK8uKIGqTIrGx5roJ5 LK1umjYY0TmSchiGMhJ6Zw7qJF/lVIDBxWYMGwPyiA51l/HMqknDIbZGefk4yeNspSjJ qsAgzBUh/fpydSMZeI0GzH984RwyoTYXtuZcE= Received: by 10.231.15.130 with SMTP id k2mr2160003iba.31.1231866861364; Tue, 13 Jan 2009 09:14:21 -0800 (PST) Received: by 10.231.33.4 with HTTP; Tue, 13 Jan 2009 09:14:21 -0800 (PST) Message-ID: Date: Tue, 13 Jan 2009 15:14:21 -0200 From: "Guilherme Costa" To: "Log4J Users List" Subject: Re: logging start on last log file intended of current log file In-Reply-To: <681773.22076.qm@web54506.mail.re2.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_163_788929.1231866861363" 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> <681773.22076.qm@web54506.mail.re2.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_163_788929.1231866861363 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Awesome!! MDC worked great!!! Thanks a lot, Gui On Tue, Jan 13, 2009 at 1:52 PM, wrote: > Have a look at http://ivor.bosloper.nl/2006/11/07/log4j-mdc/ and how to > use MDC > > > > > ________________________________ > From: Guilherme Costa > To: Log4J Users List > Sent: Tuesday, 13 January, 2009 15:45:27 > Subject: Re: logging start on last log file intended of current log file > > 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_163_788929.1231866861363--