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


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

Re: logging

From Kaz Kylheku <kaz@kylheku.com>
Newsgroups comp.os.linux.development.apps
Subject Re: logging
Date 2012-01-10 00:13 +0000
Organization A noiseless patient Spider
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>

Show all headers | 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