Giter Club home page Giter Club logo

Comments (6)

cice avatar cice commented on August 21, 2024

i'll get on it!

from rapuncel.

cice avatar cice commented on August 21, 2024

hey @evaneykelen
i just pushed 0.0.6.RC2 with logging features. (details here and on rubygems )

just use gem "rapuncel", "~> 0.0.6.RC1" in your Gemfile

i've tried to make it as thin as possible:

  1. it will only be enabled if you use the :logger option for Client.new, you can't enable logging on an existing client.
  2. Use Client.new :logger => true to log to STDOUT
  3. Use Client.new :logger => :stderr to log to STDERR
  4. Use Client.new :logger => my_io_stream to log to any IO stream (i.e. an open file stream)
  5. Use Client.new :logger => Logger.new(...) for your own Logger(-compatible) instance
  6. Use Client.new :log_level => Logger::DEBUG to set the log-level, note that this has no effect unless you set the :logger option

Log-Levels:

  1. error: If raise_on_fault or raise_on_error is set to true, the respective event will be logged
  2. warn: Logs un-raised Faults and Errors
  3. info: Logs RPC method calls (method name and number of arguments)
  4. debug: Logs RPC method calls (name and inspected arguments), Logs XML Requests and Responses (this is quite verbose!)

hope this helps! if there are any problems or questions, please report!

from rapuncel.

cice avatar cice commented on August 21, 2024

hi evan, i don't know if you've noticed, but i had a bug in RC2 (happened on XML-RPC faults), i released RC3. i'm testing it extensively in our production environment.

from rapuncel.

evaneykelen avatar evaneykelen commented on August 21, 2024

Hi Cice,

I've not been able to test this yet due to being very busy, I'll give it a whirl now!

Thx

from rapuncel.

cice avatar cice commented on August 21, 2024

ok thanks alot! if you have any suggestions or issues, please report back.

from rapuncel.

evaneykelen avatar evaneykelen commented on August 21, 2024

I've tried it and it's awesome, thanks this is a great debugging tool!

from rapuncel.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.