XMLRPC::Server logging question

Discussion in 'Ruby' started by James Mills, Sep 29, 2006.

  1. James Mills

    James Mills Guest

    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
     
    James Mills, Sep 29, 2006
    #1
    1. Advertising

  2. James Mills

    Adam Block Guest

    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-forum.com/.
     
    Adam Block, Oct 21, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stefan Siegl
    Replies:
    0
    Views:
    969
    Stefan Siegl
    Aug 27, 2003
  2. Jason Kratz

    xmlrpc server on red hat 9 question

    Jason Kratz, Jun 29, 2003, in forum: Python
    Replies:
    0
    Views:
    780
    Jason Kratz
    Jun 29, 2003
  3. Etienne Posthumus
    Replies:
    1
    Views:
    1,121
    Roger Binns
    Apr 1, 2004
  4. fortepianissimo
    Replies:
    1
    Views:
    378
    fortepianissimo
    Oct 23, 2006
  5. Adam Block
    Replies:
    5
    Views:
    187
    Gal Bar-or
    Jan 10, 2011
Loading...

Share This Page