[reSIProcate] external logger

Justin Matthews justin.matthews at ivr.com
Thu Jan 20 12:29:30 CST 2005


Sounds like there is some interest, attached are the files I modified.
These files are intended to be a starting point.  Since I am a newbie I am
sure they may be a better/cleaner way of adding this.  

Thanks,

-Justin

-----Original Message-----
From: Thomas Gal [mailto:ThomasGal at LumenVox.com] 
Sent: Thursday, January 20, 2005 10:08 AM
To: 'Justin Matthews'; resiprocate-devel at list.sipfoundry.org
Subject: RE: [reSIProcate] external logger

I think that's great as no doubt everyone will likely be integrating this
into larger schemes and quite often have their own logging code.

-Tom

thomasgal at lumenvox.com  

> -----Original Message-----
> From: resiprocate-devel-bounces at list.sipfoundry.org 
> [mailto:resiprocate-devel-bounces at list.sipfoundry.org] On 
> Behalf Of Justin Matthews
> Sent: Wednesday, January 19, 2005 7:15 PM
> To: resiprocate-devel at list.sipfoundry.org
> Subject: [reSIProcate] external logger
> 
> Hello,
> 
> The application that I am working on that uses resip has its 
> own logging functionality.  The logger in our app ("myapp") 
> has some enhanced features similar to those found in log4j 
> (logging configurable using a config file, different outputs 
> including sockets, syslog, rolling file appenders...).
> What I would like is for myapp to be in total control of the 
> logging.  I have modified resip by adding a new 
> Log::initialize() function that takes a pointer to a function 
> as the only argument and modified Logger.hxx to forward all 
> log requests to this function if the external function 
> pointer "type" logger is enabled.  Is this, or a similar 
> solution, something that would be considered for addition 
> into resip?  Does anyone have any other suggestions for 
> adding this functionality?
> 
> Thanks,
> 
> Justin
> 
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at list.sipfoundry.org
> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
> 

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Logger.hxx
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20050120/0eb9e907/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Log.cxx
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20050120/0eb9e907/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Log.hxx
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20050120/0eb9e907/attachment-0002.ksh>


More information about the resiprocate-devel mailing list