similar to: set permissions to Logger object

Displaying 20 results from an estimated 200000 matches similar to: "set permissions to Logger object"

2011 May 04
0
Set user permission to Logger object
Can we set user read write access permissions while creating Logger object in rails application? How? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2011 Dec 31
4
Testing Explain Logger Output
Any quick tips? I''ve been getting the SQL Server adapter up to passing for 3.2 and I wanted to test our explain printer. It will be very much like mysql2''s printer. But I think my brain is mush and my meta-fu weak at the moment and I need some help. I tried stubbing ActiveRecord::Base.logger.warn but to no avail. Any thoughts? - Ken -- You received this message because you
2010 Nov 11
1
mongrel_rails logger
I have a live site that has a mongrel_rails instance running. When I see the process is shows that is has the -e production value set. I am not seeing any logger info in the production log. Ideas? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2006 Nov 16
0
Rails logger doesn't log nil, Ruby logger does
Is there some reason that the Rails logger doesn''t log nil as the string "nil", like the Ruby logger does? It is a bit confusing. Ruby example: $ cat log.rb require ''logger'' logger = Logger.new(STDOUT) logger.info "test" logger.info true logger.info nil logger.info "end test" $ ruby log.rb I, [2006-11-15T16:45:00.348262 #2058] INFO
2010 Jul 16
0
No more filter chain halted messages?
I''ve been trying to debug test failures when converting my project to rails 3, and I noticed that controllers are redirecting inside of before filters. It''s very difficult to figure out which of my 8 before_filters caused the unexpected redirect, however, since the "filter chain halted as XXX rendered or redirected" message is MIA. I read through the new
2010 Apr 15
1
Using Rails.Logger in a gem in Rails 3beta3
Hi fellows! I want to use the Rails.logger in my gem. I try the following code in my main gem-file. require ''rails/logger'' puts "init1" ::Rails.logger.info("hi") puts "init2" The funny thing is: It even don''t give me the output of puts in the stdout of the server! But if I remove the call to Rails.logger the puts are displayed in the
2006 Nov 10
0
Override logger for large binary data
I''ve searched high and low and played around and couldn''t figure out how to override what the logger prints for a specific model (one that has many columns of multi-100K blobs). I ''tail -f log/development.log'' in a shell within emacs and it really doesn''t like the huge lines dumped out during saves/updates. So, I finally figured out that if I put the
2011 Apr 21
1
Rails 3 Foreign Domain routing - cannot get this to work!
Hello, I''m trying to build an app (mysuperapp.com) that allows users to create an account in which a default subdomain (IE: joeshmoe.mysuperapp.com) will be created as their homepage. In their profile settings, I also want to give them the ability to add their own domain name so their homepage now can be joeshmoe.com. I know this is possible in rails w/ plugins like subdomainfu
2008 Oct 17
1
ActionMailer template gets nil param from non-nil deliver_
Rails 1.2.6 ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0] =Summary: I pass a non-nil parameter to an ActionMailer class''s deliver_* method. The corresponding * instance method for the ActionMailer gets a nil instead. Disaster ensues. Will someone please tell me what I''m doing wrong? =Details: I have an ActionMailer::Base class with the following template
2013 Jan 21
1
Set asset host port in a way similar to what application does
Concerning http://stackoverflow.com/questions/13266603/rails-how-to-set-port-number-for-the-asset-hosts-in-development I''m setting the full asset hosts in the environment files, being the one in development http://localhost:3000 . But let''s say I restart the application on port 3001. Assets won''t be fetched, and I have to change it accordingly all the time in the
2007 Apr 03
0
syslog logger performance
I have the syslog logger from the rails analyzer gem installed, and I''m curious if anyone else has used it in production and has comments on the performance hit they took, particularly when logging to syslogd on the same server. Chris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 Nov 09
0
Rails Logger in custom module
Hi, i did a custom module in the model directory. How can i use the standard rails logger inside this module? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this
2008 May 25
0
TMail and logger
Hello, I''m the creator and ror developer of vipc.it, a photographic competition that works pretty well. I''ve created different releases and implemented different techniques to collect entries, from simple http to flex upload to manage big files (up to 5/6 mb), but every solution always had disadvantages: unresponsive server, user from many countries with old computers (problem
2008 Feb 19
0
Rails logger change format
Hi guys, After few investigations I still cannot change the format of logs from rails 2.0.2 apps. I tried with overwriting the format_message method from Logger class and still nothing. I know that in Rails 2.0.2 BufferedLogger is used and I didn''t manage to change the format for this one. What seems to be the easiest way to do that ? Thanks in advance. -- Posted via
2008 Feb 20
0
Testable Logger
I like the idea of having unit tests make sure what gets logged. I found a plugin called "testable logger" at http://code.teytek.com/rails/plugins/testable_logger/ This promises to do what I''m looking for. But the code itself is not available through the links provided. The author hasn''t responded to my email. Does anyone know an alternative or has a copy of the
2010 Jan 18
5
Re: puts & logger ... flush immediately
Marnen Laibow-Koser wrote: > Ralph Shnelvar wrote: >> newbie here ... >> >> I am tracing logic putting puts and logger.info calls in my code. >> >> I _think_ Rails is buffering output so that I can''t see what happens >> until I close out webrick. > > But you are probably wrong. If you watch the log scroll by, you will > generally see
2007 Feb 04
2
Per activerecord object callbacks (aka: should I have gone to bed hours ago?)
First of all, I should have gone to bed a long time, so please be forgiving with regards to what will follow :) So I''ve been working all day on a rails project that needs to go out soon, and I thought I would try to refactor a has_many relationship to a has_and_belongs_to_many relationship (using has_many :through). However, I then realized that I would loose a lot of the simple beauty
2012 Sep 13
0
Accepting build_association parameter for fields_for helper or build association object automatically
Do you think will it useful to include in rails functionality of this gem<https://github.com/ka8725/get_or_build>(get_or_build)? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/6vNMq94gdb4J. To post to this group, send email to
2011 Mar 01
6
render :collection calling partial with phantom object?
I have two models with a straightforward has_many / belongs_to relationship: class Premise < ActiveRecord::Base has_many :metered_services, :dependent => :destroy ... end class MeteredService < ActiveRecord::Base belongs_to :premise ... end and nested routes to match: Demo::Application.routes.draw do devise_for :users resources :premises do resources :metered_services
2012 Sep 11
3
question about how to set up an active record adapter to prefer use of prepared statements...
Hi, I am writing an active record adapter for our new database and when I run the tests I see lots of statements that could be run as prepared statements, but instead of passing me bindings AR passes me a fully specialized SQL string, not in all cases, but in many. Here is an example: SELECT addrs.* FROM addrs WHERE addrs.user_id = 153 FETCH FIRST 1 ROWS ONLY I do have this hook set up: