From: Eike <eike@eknet.org>
To: Tassilo Horn <tsdh@gnu.org>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: View log files with emacs
Date: Wed, 18 Feb 2015 09:39:10 +0100 [thread overview]
Message-ID: <87ioezd369.fsf@eknet.org> (raw)
In-Reply-To: <87d257y96t.fsf@gnu.org>
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
prev parent reply other threads:[~2015-02-18 8:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-17 15:37 View log files with emacs Eike
2015-02-17 15:43 ` Drew Adams
2015-02-17 18:58 ` Alex Kost
2015-02-17 20:04 ` Eike
2015-02-23 21:53 ` Steinar Bang
2015-02-23 22:17 ` John Mastro
2015-02-24 12:14 ` Alex Kost
2015-02-17 19:06 ` Filipp Gunbin
2015-02-17 20:13 ` Eike
2015-02-18 7:23 ` Tassilo Horn
2015-02-18 8:39 ` Eike [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ioezd369.fsf@eknet.org \
--to=eike@eknet.org \
--cc=help-gnu-emacs@gnu.org \
--cc=tsdh@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.