[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

XMLRPC::Server logging question

James Mills

9/29/2006 4:10:00 PM

Hello all.

I have a program that has a thread serving up an client API using
XMLRPC::Server. Up to this point, I have been happy letting it log
eveything to stdout. However, as I move forward, I want to combine
every log event in my program into a single log file. I am using the
Logger class for eveything else in the program, but I cannot find a
way to tell XMLRPC::Server to use it. I know that XMLRPC::Server
creates a WEBrick::HTTPServer internally, and that is the object doing
the logging. Is there a way to get at that WEBrick's ":Logger"
parameter?

Any ideas?

Thanks,
~james

1 Answer

(Adam Block)

10/21/2006 9:45:00 PM

0

Did you ever solve this problem? I'm just trying to figure out how to
turn off the WEBRick server logging altogether.

/adam

James Mills wrote:
> Hello all.
>
> I have a program that has a thread serving up an client API using
> XMLRPC::Server. Up to this point, I have been happy letting it log
> eveything to stdout. However, as I move forward, I want to combine
> every log event in my program into a single log file. I am using the
> Logger class for eveything else in the program, but I cannot find a
> way to tell XMLRPC::Server to use it. I know that XMLRPC::Server
> creates a WEBrick::HTTPServer internally, and that is the object doing
> the logging. Is there a way to get at that WEBrick's ":Logger"
> parameter?
>
> Any ideas?
>
> Thanks,
> ~james


--
Posted via http://www.ruby-....