From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eike Newsgroups: gmane.emacs.help Subject: Re: View log files with emacs Date: Wed, 18 Feb 2015 09:39:10 +0100 Message-ID: <87ioezd369.fsf@eknet.org> References: <871tloczw8.fsf@eknet.org> <87d257y96t.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1424248782 9932 80.91.229.3 (18 Feb 2015 08:39:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Feb 2015 08:39:42 +0000 (UTC) Cc: help-gnu-emacs To: Tassilo Horn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 18 09:39:34 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 1YO0AQ-0001lE-9p for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Feb 2015 09:39:34 +0100 Original-Received: from localhost ([::1]:49330 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YO0AP-0004Ej-Gf for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Feb 2015 03:39:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YO0AE-0004Dz-BH for help-gnu-emacs@gnu.org; Wed, 18 Feb 2015 03:39:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YO0AA-0005u2-7N for help-gnu-emacs@gnu.org; Wed, 18 Feb 2015 03:39:22 -0500 Original-Received: from static.134.107.40.188.clients.your-server.de ([188.40.107.134]:36945 helo=eknet.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YO0AA-0005te-1W; Wed, 18 Feb 2015 03:39:18 -0500 Original-Received: from [212.55.210.130] (helo=shang.eknet.org) by eknet.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84) (envelope-from ) id 1YO0A8-0004Gr-O6; Wed, 18 Feb 2015 08:39:16 +0000 In-reply-to: <87d257y96t.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 188.40.107.134 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:102782 Archived-At: Hi Tassilo, Thanks for your reply. Tassilo Horn writes: > Hi Eike, > > many logging formats have a one-line-per-message format, and if there > are multi-line messages, the second-to-last lines are indented, e.g., > > [2015-02-18 08:22][foobar] An error occured: java.lang.NullPointerException > some.Class.method() > some.other.Class.method() > ... > > In that case you can use Selective Display for folding, see: > > ,----[ (info "(emacs)Selective Display") ] > | Emacs has the ability to hide lines indented more than a given number of > | columns. You can use this to get an overview of a part of a program. > `---- Oh, that is great! Thank you. > And you can use `occur' for filtering to messages of a given type (as > long as you can encode that in a regex): I found occur yesterday after searching the emacswiki (which Drew reminded me of). That also is really nice! Together with `syslog-mode', selective display and `auto-revert-tail-mode' it seems I have all I need now. Emacs seems to have everything… :) Kind regards, Eike -- gpg: AD7AC35E finger print: 137F BB0B 1639 D25F DC5D E59C B412 C5F5 AD7A C35E