[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: John Peacock <jpeacock_at_rowman.com>
Date: 2005-07-21 13:18:10 CEST

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. Thanks
for sticking with it long enough to come around to my point of view. ;-)

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jul 21 13:18:47 2005

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