similar to: using log4r and rails

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

2006 Apr 07
3
log4r and rails
Hey there folks. I would really like to use log4r as my default logger in Rails, but I''m having a hard time getting it to work. I''m not even sure I''m plugging it in in the right place. I''m using log4r 1.0.5 and rails 1.1.1. I would love it if someone could either point me to a good tutorial on how to use log4r with rails, or at least point me in the right
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]
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''
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?
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
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
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 24
0
xrcise now works
Hi Mario, The following change to outputter.rb did work for me. It looks like adding a routine to string should also work but it didn''t for me. Thanks for your help. -Philip ===== from RubyForge ========== Date: 2009-11-18 00:25 Sender: Konstantin Shabanov After changing ''each'' method to ''each_line'' in outputter.rb on lines 39 and 46 xrcise code
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
2012 Aug 07
3
Barcode Generating With Label On Canvas by using Barby gem
********UNDEFINED METHOD REGISTER ERROR IN THE FALLOWING CODE ******* Hi all, I am trying to generate barcode(including its name as label at the bottom of barcode image for easy understand with out scanning by barcode scanner). For this I am Using barby, chuncky_png, rmagick gems. I am using the fallowing code to generate label at bottom of image by using rmagick gem: gem
2009 Mar 27
0
xrciser problem
I built a Windows GUI using DialogBlocks v4.29, saved the resulting XRC for processing with wxRuby''s xrciser tool. Following Ruby products installed: wxRuby is v 2.0.0 wxSugar is v0.1.22 Ruby is v1.9.1 Rubygems is v1.3.1 Running xrciser on the file gives the following: C:\ruby>xrcise -o toolgui.rb tool.xrc
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,
2020 Apr 30
1
Translations and snprintf on Windows
[a bit unsure on if this is maybe better for r-package-devel] We recently added translations to messages at the R and C level to data.table. At the C level, we did _() wrapping for char arrays supplied to the following functions: error, warning, Rprintf, Error, and snprintf. This seemed OK but the use of snprintf specifically appears to have caused a crash on Windows:
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 Mar 26
17
activeldap
Obviously I am missing something and I don''t know what it is... I am following the instructions at http://rubyforge.org/docman/view.php/381/114/activeldap_rb.html and also here... http://wiki.rubyonrails.org/rails/pages/HowtoAuthenticateViaLdap my model looks exactly like this... class LdapUser < ActiveRecord::Base ldap_mapping :dnattr => ''uid'', :prefix
2018 Aug 06
2
vectorisation, risc-v
(please do cc me to preserve thread as i am subscribed digest) Hi folks, i have a requirement to develop a libre licensed low power embedded 3D GPU and VPU and using RISCV as the basis (GPGPU style) seems eminently sensible, and anyone is invited to participate. A gsoc2017 student named Jake has already developed a Vulkan3D software renderer and shader, and (parallelised) llvm is a critical