similar to: log4r and rails

Displaying 20 results from an estimated 300 matches similar to: "log4r and rails"

2006 Apr 11
2
using log4r and rails
hey everyone. i know somebody else had started a thread on this subject, but since no one seems to be answering that thread i thought i would start one of my one. i''m doing a project for a client and we need some seriously verbose logging. it looks like log4r can do what i need, but i can''t for the life of me figure out how to plug it into rails. everywhere talks about how
2006 Jul 12
2
Initializing log4r once
I have a problem init''ing log4r. I have the following initialization code for log4r: Configurator[''logpath''] = ''./config'' # was ''./logs'' Configurator.load_xml_file(''config/log4r_config.xml'') I put it in appliction.rb, but then ofcourse at every request the logger system will be reinitialized. This causes the
2005 Dec 19
3
tough activerecord problem
I have an application that is using active record outside of rails. the app works fine w/o the activerecord code, but when I added activerecord to the mix I started having trouble with constants not being recognized, e.g.: [echo] 1) Error: [echo] test_pipeline_cruncher(IntradayCruncher::TestPipelineCruncher): [echo] NameError: uninitialized constant INFO [echo]
2006 Apr 04
0
Log4r database outputter
I recently had a look at Log4Net before we decided to go with Ruby On Rails. As part of evaluating Ruby and Rails, I had a look at Log4r as well. We want to use Log4r, and we would have a logger that output all levels to console and stdout, and everything above Warn to a database table. But the deployment of log4r doesn''t come with a database outputter. Is there any reason for this?
2009 Dec 24
1
problems unpacking log4r
I was just starting to use log4r and everything was going peachy until I tired to unpack it into my local vendor/gems. The next time I tried to load my rails environment, I got: config.gem: Unpacked gem log4r-1.1.2 in vendor/gems has no specification file. Run ''rake gems:refresh_specs'' to fix this and: no such file to load -- log4r So - I dutifully tried running rake
2006 May 21
0
Re: log4r and rails
The first question I would ask (partially out of curiosity) is what log4r specific feature are you trying to use? While there are some neat log4r features, the built in logger provides (from my perspective) a good logging framework already probably addresses most logging needs. http://wiki.rubyonrails.com/rails/pages/HowtoConfigureLogging That said, a basic setup to use log4r in rails follows a
2008 Jun 30
0
log4r warning message...
I installed log4r as a gem on Max OS X Leopard. When I start the server locally, I have a warning that I''d like to get rid of. I think this is a side-effect of log4r? Other rails projects that I am working on, on the same machine that don''t generate this warning. this one is the only one using log4r. => Booting Mongrel (use ''script/server webrick'' to force
2006 Aug 12
0
log4r versus default rails logger??? recommendations???
Hi all, Just into rails at the moment. What do people recommend for logging. Use of the rails logger or log4r (http://log4r.sourceforge.net/)? What are most production rails sites using? Tks -- Posted via http://www.ruby-forum.com/.
2010 Dec 23
0
logserver with log4r
Hey guys, I am trying to set up a logging server using log4r ! When I try to run the server I get the following error message "LogServer not supported. ROMP is required (RuntimeError)" I installed romp the way its mentioned in some blog with similar issue. Any ideas about it ? Thanks. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 Aug 18
0
Log4r SyslogOutputter example
Does anybody have a SyslogOutputter XML or YAML example that they got to work? -- Posted via http://www.ruby-forum.com/.
2011 Jun 28
2
A masked function is a masked function by any other name
Dear all, It looks like I do not grasp the concept of masked functions enough as to solve this trivial problem. The code that replicates the problem (a source code tree that realizes a R package actually) is under github so one can call it clone it easily from the command line (though more experienced users will spot the problem by browsing through the package code): git clone http://jcborras at
2013 Nov 12
7
Hook into Exception Chain
Hi there, I''m using Log4r in my rails projects. On log.error an email is sent using the EmailOutputter. I know changed the EmailOutputter to include a global var in the subject (MDC) since the subject is normally static. I want to set this var to the exception message, so it is sent as the subject. Can anyone tell me how to do this in rails? Basically: raise e or some other cause
2006 Jul 06
7
REPOST: Musings on Rails and logging philosophies
[OK, since I stupidly posted this over the July 4th week[end] and got no responses, let''s try it again...] As a perpetual Rails dabbler, I make an awful lot of typical beginner mistakes. And the logs are always either too verbose or too sparse to help me. And it started me thinking. I came from one of the largest production OLTP systems in the world, and the one thing that helped
2005 Mar 04
17
active record logs format
Hi, I think this has already been asked on the list, but I can''t seem to be able to find it again: currently, active record does some weird thing with its sql logs i.e.: [4;33mSQL (0.000000) [1;37mPRAGMA table_info(map_locations) how do I remove the "[4;35m" thx Jean
2009 Nov 23
1
xrcise not working
Hi. I''m back. Unfortunately I can''t get xrcise working. Here is the sample xrc file and the resulting error messages: =============== TestWxFb.xrc ========================================= <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <resource xmlns="http://www.wxwindows.org/wxxrc" version="2.3.0.1">
2009 Aug 10
2
xrcise -o test.rb ui.xrc
I built a small form in wxFormBuilder. In cmd i wrote xrcise -o test.rb ui.xrc output was C:/ruby/lib/ruby/gems/1.9.1/gems/wx_sugar-0.1.22/lib/wx_sugar/xrc/outputter.rb:4 6:in `clean_id_attr_readers'': undefined method `each'' for #<String:0xba5850> (No MethodError) from (erb):16:in `output'' from C:/ruby/lib/ruby/1.9.1/erb.rb:753:in `eval''
2007 Aug 10
3
[ win32utils-Bugs-12979 ] Error while trying to update my gem collection
Bugs item #12979, was opened at 2007-08-10 15:29 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=12979&group_id=85 Category: windows-pr Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: Error while trying to update my gem collection Initial Comment: C:\ruby>gem update Updating
2009 Jun 10
5
uninitialized constant ActiveSupport::Cache (NameError)
Hi After having updated some GEMS I get `load_missing_constant'': uninitialized constant ActiveSupport::Cache (NameError) on starting the server of a freshly generated rails project. Before, I already had Rails 2.3.2 projects succesfully running, now all of them generate this error. These are my GEMS: actionmailer (2.3.2, 2.2.2, 2.1.2, 2.1.1, 2.1.0) actionpack (2.3.2, 2.2.2, 2.1.2,
2006 Nov 06
4
Errno::EBADF (Bad file descriptor)
I posted this to the discussion forum on rubyforge.org, but it appears that it would have been better to post here. Does anyone have any advice on how to resolve the problem reported at http://rubyforge.org/tracker/index.php?func=detail&aid=6284&group_id=1306&atid=5145? Thanks, Justin -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jul 21
6
pulling information from LDAP server using Ruby on Rails
Hello, I am currently working on a project using Ruby on Rails. So far, I have a well-populated mySQL database the RoR refers to and the basic scaffolding functions implemented. I also designed views/layouts that furthers the basic scaffolding interface. No problem and no big accomplishment by any means. Now, I want to pull user information from an already existing LDAP server and put that