From owner-freebsd-current@FreeBSD.ORG Sun Aug 13 03:02:06 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 532EB16A4DE for ; Sun, 13 Aug 2006 03:02:06 +0000 (UTC) (envelope-from prvs=julian=373ccd7e4@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA21643D46 for ; Sun, 13 Aug 2006 03:02:05 +0000 (GMT) (envelope-from prvs=julian=373ccd7e4@elischer.org) Received: from unknown (HELO [192.168.2.3]) ([10.251.60.23]) by a50.ironport.com with ESMTP; 12 Aug 2006 20:02:05 -0700 Message-ID: <44DE962C.7050402@elischer.org> Date: Sat, 12 Aug 2006 20:02:04 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.13) Gecko/20060414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bakul Shah References: <20060812205822.151AF2948D@mail.bitblocks.com> In-Reply-To: <20060812205822.151AF2948D@mail.bitblocks.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: current@freebsd.org Subject: Re: suggested addition to 'date' X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Aug 2006 03:02:06 -0000 Bakul Shah wrote: >>To me it seems more natural to add the few extra lines to date because >>in my mind it is a natural >>usage of date and extending date to be able to be used as a filter >>doesn't hurt existing functionality. >> >> > >I may want to prepend a log line with not just a timestamp >but also other information such as user, group, hostname etc. >This change may be small but it does not belong in date(1). >Just as I wouldn't want to extend hostname(1) to be a filter. >It makes more sense to extend logger(1), not date(1). > >Don't mess with my date:-) > > Who's messing with date? it acts as before except if you need to annotate a stream with timestamps.. Now puting it in logger.. THAT is an unintuitive program to make into a date adding filter. Date's job is to output the time.. it makes perfect sense to me to allow it to append the time to a stream as well. logger's job is to send data to the syslog system, which already date stamps things. It is not designed to be a filter but it already takes file input and outputs to stderr. I really can't believe the people who are complaining about this.. I should have just committed it. Talk about a bikeshed!