Re: Logging 0.7.0 (Quixotic Starfish)



On Feb 13, 7:58 am, Tim Pease <tim.pe...@xxxxxxxxx> wrote:
On Feb 12, 2008, at 9:22 PM, James Gray wrote:

On Feb 12, 2008, at 7:21 PM,TimPeasewrote:

1) a rolling file appender than can handle multiple processes logging
to the same file

Forgive my being too lazy to look to night, but what does this
mean? Would this feature make it possible to make something like
Rails logging multiprocess safe?

That is correct. Multiple Rails processes (i.e. mongrel clusters) can
now safely log to the same file, have the file roll, and all the
processes will use the newer log file.

You can also use the Syslog appender in Logging and dump to the syslog
service. This is good for collecting logs from multiple machines.

What's the best way to configure Rails to use Logging? Is there any
documentation for setting it up?

I looked at http://wiki.rubyonrails.org/rails/pages/HowtoConfigureLogging
but it only talks about log4r.

Will.
.



Relevant Pages

  • Re: Rails app organization question
    ... I -really- like Rails, though. ... Have one instance of the app and somehow allow it to use different databases depending on the user's login. ... Have multiple instances of the app running on virtual servers, similar to how cPanel sets up accounts for multiple hosts -- each host has its own directory, MySQL database, and so on. ...
    (comp.lang.ruby)
  • Re: logging 0.9.5
    ... Does this work in Rails 2.2.2? ... Logging is a flexible logging library for use in Ruby programs based on ... custom level names, multiple output destinations per log event, custom ... (console, file, rolling file) ...
    (comp.lang.ruby)
  • Re: Two Advanced Ruby Performance Questions
    ... I am disappointed to learn that Rails is not thread safe. ... multiple ruby interpreters is a good workaround. ... have to rewrite ActiveRecord anyways as it relies on config files to set ... threads -- scaling with processes is better/easier than scaling with ...
    (comp.lang.ruby)
  • Re: Future ISPF directions (was: Re: How Was Share?)
    ... Shutting off propagation of the Enqueue for PROFILE would only ... apply to logging on to multiple systems in the sysplex. ... LOG might be a bigger issue if you wanted multiple concurrent ... For IBM-MAIN subscribe / signoff / archive access instructions, ...
    (bit.listserv.ibm-main)
  • Re: lew? 2 qq
    ... Everyone writes to the same channel, and the logging overhead to stderr is incurred with every call; that can have an adverse impact on performance. ... you have to invent your own formats, disentangle all the output from multiple sources, disentangle important output from less so, and you can't selectively suppress some log output and not other. ... All less critical messages ("WARNING", "DEBUG", etc.) not only are not emitted, they have negligible impact on production performance. ... Logging is configurable at deployment time via an external resource file, so you don't even have to hard-code all that control. ...
    (comp.lang.java.help)

Loading