On Apr 4, 7:07 pm, Anderson Leite <[email protected]> wrote: > It's probably a begginers question...but, in a controller I have: > > logger = Logger.new(STDOUT) > logger.info "Testing logger at controller" > > When running my app in my machine, I can see this log in > log/development.log file. > > When running in production, this log is not printed. Not even with > "puts" ...
I don't think STDOUT is connected to anything in particular in production (since typically the process will have detached from the terminal that launched it) If you just want to write to the standard log file why do you need to create your own logger? Fred > > Info is the default level for Logger when running in > production...so...Why can't I see my logs in production environmnent ? > Any help ? > -- > Posted viahttp://www.ruby-forum.com/. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

