Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.development.apps > #383

Re: logging

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From Kaz Kylheku <kaz@kylheku.com>
Newsgroups comp.os.linux.development.apps
Subject Re: logging
Date Tue, 10 Jan 2012 00:13:09 +0000 (UTC)
Organization A noiseless patient Spider
Lines 11
Message-ID <20120109155419.485@kylheku.com> (permalink)
References <je541k$f4o$1@dont-email.me> <87r4zdn3id.fsf@sapphire.mobileactivedefense.com> <je5fvk$q33$1@dont-email.me> <jefuvb$k24$1@dont-email.me>
Injection-Date Tue, 10 Jan 2012 00:13:09 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="UCk3K/YilCUd19+i749f3A"; logging-data="24317"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Y9bU78S4OtdDUUfdibWmFVSzDEjbv7h4="
User-Agent slrn/pre1.0.0-18 (Linux)
Cancel-Lock sha1:75f3XA6PyfaZ+TvL+dxI8bu17+k=
Xref x330-a1.tempe.blueboxinc.net comp.os.linux.development.apps:383

Show key headers only | View raw


On 2012-01-09, Bill M <wpmccormick@just_about_everywhere.com> wrote:
> So I'm up and running with rsyslog. Thanks for the help.
>
> Is there some easy way (MACRO or other such device) to capture file 
> name/line number?

ISO C provides __FILE__ and __LINE__, as well as __DATE__ and __TIME__.

GNU C also has __FUNCTION__ which appears in ISO C99 in the form of __func__.

http://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html

Back to comp.os.linux.development.apps | Previous | NextPrevious in thread | Find similar


Thread

logging Bill M <wpmccormick@just_about_everywhere.com> - 2012-01-05 15:17 -0600
  Re: logging Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2012-01-05 15:41 -0700
  Re: logging Lew Pitcher <lpitcher@teksavvy.com> - 2012-01-05 17:56 -0500
    Re: logging Bill M <wpmccormick@just_about_everywhere.com> - 2012-01-05 17:33 -0600
      Re: logging Lew Pitcher <lpitcher@teksavvy.com> - 2012-01-05 19:31 -0500
  Re: logging Rainer Weikusat <rweikusat@mssgmbh.com> - 2012-01-05 23:17 +0000
    Re: logging Bill M <wpmccormick@just_about_everywhere.com> - 2012-01-05 18:41 -0600
      Re: logging Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2012-01-05 21:16 -0700
        Re: logging Bill M <wpmccormick@just_about_everywhere.com> - 2012-01-06 14:52 -0600
          Re: logging Bill M <wpmccormick@just_about_everywhere.com> - 2012-01-06 16:39 -0600
      Re: logging Bill M <wpmccormick@just_about_everywhere.com> - 2012-01-09 17:58 -0600
        Re: logging Kaz Kylheku <kaz@kylheku.com> - 2012-01-10 00:13 +0000

csiph-web