You can probably just treat the logging as a stream which can trivially be redirected to syslog using logger.
See: http://adam.heroku.com/past/2011/4/1/logs_are_streams_not_files/ On May 4, 2:07 pm, Andrew Boag <[email protected]> wrote: > Interesting point that I have given some thought to in the past. > > Am I right in thinking that there aren't any logging ruby frameworks > that integrate with syslog in linux systems. So that you can control the > target (and level) of the logging messages via /etc/syslog.conf ? > > On 04/05/11 13:48, Nicholas Faiz wrote: > > > > > > > > > I'd be interested in having a general purpose logging framework I > > could use for various tasks. In some of the code I work on, there are > > some logging statements which run to stdout (and which I might like to > > do other things with), and others which are written to a db for an end > > user to see when representing application activity. They are currently > > two different areas of code (the former simply puts), but being able > > to to specify logging handlers and logging levels/audiences etc., > > would be great. > > > Log4r never seemed to get a lot of adoption in the Ruby world? See > >http://log4r.rubyforge.org/. I guess because it uses YML or XML for > > config and is too reminiscent of Log4J? > > > It'd be nice to have a simple logging mechanism which could be > > leveraged for different things (my e.g. first paragraph). Unsure of > > why there isn't one really. > > -- > > You received this message because you are subscribed to the Google > > Groups "Ruby or Rails Oceania" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > >http://groups.google.com/group/rails-oceania?hl=en. -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
