similar to: Default logger inside arbitrary classes

Displaying 20 results from an estimated 900 matches similar to: "Default logger inside arbitrary classes"

2006 Apr 06
4
Lighthttpd not working as default (configuration?)
Hi, On the api doc it is written that if lighttpd is installed, rails will use it as its web server instead of WebBrick. I have installed lighthttpd and verified it works (for example on the default port 80) but when lauching script/server, it still uses WebBrick. I wondering if I need to edit /etc/lighttpd/lighthttpd.conf myself or configure something else. Any idea? Thanks Oscar
2006 Apr 24
6
Hi...Please help me
Hi Friends, I want to implement VOIP PBX service in my office. I have 10 computers and a server. All computers are Pentium IV processors with 512 MB RAM. All employee computers have Windows 2000 Professional OS and Server computer Windows 2000 Professional and Fedora Core 5 Linux OS. I have a VOIP phone and have registered with VoIP service provider. Now, I want to implement VOIP PBX facility to
2006 Apr 03
2
popup forms?
I searched a bit, but have come up short. Are there any libraries for creating popup forms w/ rails? These would not be displayed in a separate browser window, but rather made visible over an open page and adjacent to a clicked link -- similar to the google maps baloons, or the gmail popups. Lots of other examples out there... Thanks --------------------------------- Talk is cheap. Use
2006 Jan 06
10
I need debugging tips?
Hi all, Like most other frameworks, Ruby groups code by Model/View/Controller instead of by task, and therefore I''m having a hard time debugging a problem from the Agile Rails book where looping through @items errors out because one or more items is nil. I managed to empty the cart by placing session[:cart] = nil in find_cart() in the store_controller_rb, and the problem continued
2006 Jan 11
1
logger in my classes
Hi, I wrote a class which is not an AR extension, nor a controller. I''d like to use logger.* methods there too. My class is in lib/ dir. I include it in environment.rb with the line require ''lib/localization'' just after the line require File.join(File.dirname(__FILE__), ''boot'') I tried many ways to reuse the logger class. The cleaner way seemed to
2005 Dec 29
2
Access rails logger from plain class
How can I "get" the rails logger from a plain class, that is a class that does not inherit from a rails class? I have tried using RAILS_DEFAULT_LOGGER (see below) but it''s nil class MyClass logger = RAILS_DEFAULT_LOGGER def myMethod logger.debug("stuff...") end end -- Posted via http://www.ruby-forum.com/.
2005 Dec 16
2
Using logger from rails cron jobs
Hi. I''m trying to use logger from a rails cron job. It works fine, but I''d like the standard ruby behavior of stamping each log with date and time. How do I do this? I''m trying: # Set up out logging require ''logger'' logger = Logger.new(STDERR) logger.level = Logger::INFO RAILS_DEFAULT_LOGGER = logger # Tell rails to log to our logger also The
2006 Aug 06
2
Rails logger: how to access it in a my own class
Hey Guys, The only way I could find to access the Rails logger object was to subclass from ApplicationController... can anyone suggest a more sensible way of doing it? Soroe. -- Posted via http://www.ruby-forum.com/.
2005 Oct 27
1
Logger datetime_format not working ?
I''m trying to configure logger in a rails app. I added this to my environment.rb : RAILS_DEFAULT_LOGGER.datetime_format = "%Y-%m-%d %H.%M.%s" Yet, none of the entries in the development.log show the datestamp. What can you tell me about this ? Thanks. Peter Fitzgibbons _______________________________________________ Rails mailing list
2006 May 17
1
ActiveRecord vs logger
Appendix B.1 of the Agile book says you can configure as follows: B.1 Active Record Configuration ActiveRecord::Base.logger =logger Accepts a logger object. This is used internally to record database activity. It is also available to applications that want to log activity. Yet, as far as I know, there is no way to use logger.info and friends within a model. Is there? Or is this simply
2006 Jul 10
7
How to obscure/encrypt password parameter?
Hi all- I am building an application that includes a login screen. During development I found that user passwords are logged by Rails in plain text -- this will not be acceptable to my users. Is there a way to obscure/encrypt incoming password parameters or not write them to the log files at all? One thought was to use Javascript, but I was not sure how secure that would be. Thanks, Josh
2007 Apr 01
8
No stacktrace on errors (edge rails)
Hi, I must be missing something or have something misconfigured, but I get no stack-trace when there is an error in the code behind a view. If the view doesn''t compile, then I see an error & stacktrace, but all other errors I get a "lost network connection" from the browser, and nothing at all in the server output or development.log. It''s been that way with
2005 Dec 09
0
Default Logger -> Database log
Hi listers, I''m trying to save my log entries in the database using the following technique : http://wiki.rubyonrails.com/rails/pages/DatabaseLoggerWish I''ve added the following code to the Environment.rb : ---------------------------------------------------------------------------- begin RAILS_DEFAULT_LOGGER = DBErrorLogger.new() rescue StandardError
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 Apr 24
6
Handling large dataset & dataframe
Hi, I have a dataset consisting of 350,000 rows and 266 columns. Out of 266 columns 250 are dummy variable columns. I am trying to read this data set into R dataframe object but unable to do it due to memory size limitations (object size created is too large to handle in R). Is there a way to handle such a large dataset in R. My PC has 1GB of RAM, and 55 GB harddisk space running
2006 Jun 20
0
Quiet the Logger in 1.1
I''m using Rails 1.1 and I''m trying to quiet the logger. I searched the mailing list and placed the following inside my environment.rb: RAILS_DEFAULT_LOGGER.level = (RAILS_ENV == ''production'' ? Logger::INFO : Logger::DEBUG) But I keep getting: /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing'':
2006 Jan 12
3
How to Selectively Quite SQL Logging
I know about logger.silence but here is the issue: I''m comfortable with the way the user engine is working, but it generates quite a bit of SQL noise in the logs. I''d like, for that engine, to suppress the SQL logging. Code in it has return statements in conditionals, e.g., if !user? RAILS_DEFAULT_LOGGER.debug "checking guest authorisation for
2006 Feb 24
5
Plain text passwords displayed in production.log
By default, all the paramaters are displayed in the production.log on a POST. Unfortunately, this includes all the plain-text passwords that people type into the login form on my application, which is a huge security risk. I''m using a custom evaluation system that hooks into LDAP (not any of the generators/plugins). View code is simple: <%= text_field ''employee'',
2009 Feb 22
8
dynamically changing a form from POST/CREATE to PUT/UPDATE
For the life of me I can''t figure this one out, although I can''t find anyone else who''s attempted to do this, and probably with good reason. Context: blog using AJAX What I''m trying to do: when the user initially saves a blog entry, or when auto-saving, I want subsequent saves to not create a new blog entry Why I can''t just reload the partial: -
2006 Mar 21
2
How do I get substring of utf-8 string?
I''m trying to get substring from a utf-8 encoded string. (say, first 50 characters of the string) String#[0..49] would give me the first 50 bytes not 50 characters.. I know there is jcode library, but it only let you count number of characters in utf-8 string. unicode gem doesn''t seem to help much. unicode_hacks gem seem to solve the problem, but it also seems to