[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Logging: home-grown mechanism or syslog/event-log?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-07-21 21:51:49 CEST

On Jul 21, 2005, at 6:18 AM, John Peacock wrote:

> Ben Collins-Sussman wrote:
>
>> I. Implement a 'logger' class.
>> In libsvn_subr, this is just a filtered stream, nothing more.
>> A "logger" object just contains an svn_stream_t to write to, and
>> loglevel to control the writing. We create a bunch of
>> convenience constructor APIs, and a single API like
>> svn_log_write (logger, loglevel, fmt, ...)
>> If the loglevel being passed in is <= the logger's internal
>> loglevel, we apr_psprintf() the varargs and write the message to
>> the stream. Otherwise we do nothing. This makes the abstract
>> concept of "logging" available to any library or program.
>>
>
> This is much like what I was (very badly) trying to originally
> describe.

Well, yes, we didn't rediscover it on our own, we took the idea from
you. :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jul 21 21:56:07 2005

This is an archived mail posted to the Subversion Dev mailing list.