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 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> References: <87r4zdn3id.fsf@sapphire.mobileactivedefense.com> 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 On 2012-01-09, Bill M 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