From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.help Subject: Re: View log files with emacs Date: Tue, 17 Feb 2015 22:06:26 +0300 Message-ID: References: <871tloczw8.fsf@eknet.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1424200021 6876 80.91.229.3 (17 Feb 2015 19:07:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Feb 2015 19:07:01 +0000 (UTC) Cc: help-gnu-emacs To: Eike Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 17 20:06:49 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YNnTs-0002Z4-VP for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Feb 2015 20:06:49 +0100 Original-Received: from localhost ([::1]:46906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNnTs-0003EV-Be for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Feb 2015 14:06:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNnTf-0003EF-UA for help-gnu-emacs@gnu.org; Tue, 17 Feb 2015 14:06:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNnTb-0005eX-JJ for help-gnu-emacs@gnu.org; Tue, 17 Feb 2015 14:06:35 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:47426) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNnTb-0005dw-En for help-gnu-emacs@gnu.org; Tue, 17 Feb 2015 14:06:31 -0500 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 1BE2F206C1 for ; Tue, 17 Feb 2015 14:06:30 -0500 (EST) Original-Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Tue, 17 Feb 2015 14:06:30 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h= x-sasl-enc:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-type:content-transfer-encoding; s=mesmtp; bh=xGH2azkskeBvs/AgI7lQuq3h4qY=; b=bGZFkIDbG/nowefeF3 Ky40KWcZuhI1rYkubQln9W5mDgGhUr6NpPIT+OWL1tX+yNWNJvGz6DB816Uy4SGF IMqtWq7OXGL4wHnxm0Zusz3e4+4eLGlnSBEm3l0Ba7XarY64wlt66kLMjracSEni ljtJe01BRXjBjNWxJfPillmqs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:from:to:cc:subject:references :date:in-reply-to:message-id:mime-version:content-type :content-transfer-encoding; s=smtpout; bh=xGH2azkskeBvs/AgI7lQuq 3h4qY=; b=DkJJt+EgWtE5vUu2tUxI/4Is211xYzbUdA01c9ClYI6dazb9B6lxsT zU/YdMYDgPxirseieqnnVtCLzp6CPnwNMQnpa2nG0NvKLofBkirN1DeXgiqmhkmb 3kL1xTOITIdR1F8qsxmMOZJ9KzDNiJThSz30HqNPn1Onku37qJy6A= X-Sasl-enc: XHZhvds4FNno/Eb+Bc3L4dA0yOjYClpL2CTMFyAqIr2c 1424199989 Original-Received: from fgunbin.local (unknown [94.25.218.10]) by mail.messagingengine.com (Postfix) with ESMTPA id 77573C00295; Tue, 17 Feb 2015 14:06:29 -0500 (EST) In-Reply-To: <871tloczw8.fsf@eknet.org> (eike@eknet.org's message of "Tue, 17 Feb 2015 16:37:43 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (darwin) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.28 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102764 Archived-At: On 17/02/2015 16:37 +0100, Eike wrote: > Hello all, > > I have to look at some log files more often now and was wondering if > there are some handy things for emacs in that regard? I'm aware of > log4j-mode, but couldn't find more. It's for java (logback and log4j) > log files so I'd like to do fold stacktraces etc and also remove certain > parts I'm not interested in to make the file smaller (we seem to log > more useless than useful stuff=E2=80=A6). Hi, I'm not aware of special modes for e.g. java log files (although I do read them very often), but there are certainly some handy general things: 1) `auto-revert-tail-mode' - see its doc for the description. Great for looking at a growing log. In fact, you don't need `less' or `tail -f' with it any more. See also `auto-revert-remote-files' variable. You might also want to set `auto-revert-verbose' to nil. 2) `vlf' package (View Large Files). See its description. Very convenient for huge log files. I use it quite rarely, though. 3) Combined with Tramp (and grep :) these provide enough functionality for me. Filipp