similar to: Default Logger -> Database log

Displaying 20 results from an estimated 400 matches similar to: "Default Logger -> Database log"

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/.
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'':
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
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 Apr 04
2
Default logger inside arbitrary classes
Hi, What''s the best way to get the default logger (the one used during the tests) from inside a class that doesn''t inherit any rails class? Thanks Oscar --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. -------------- next part -------------- An HTML attachment was scrubbed... URL:
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 Apr 03
2
testing proportional hazard in a Cox model including a time-varying covariate
I am using a syntax like coxph(Surv(start, stop, event) ~ X, data) to estimate the effect of X, which may change at each measurement (every 6 months). Is there anyone who knows a way to test the proportional hazard assumption in that case? Thank you in advance Jean-François Boudreau Sherbrooke University [[alternative HTML version deleted]]
2006 Mar 02
5
Instiki and SQL Server??
Hello. I reeeeally want to get Instiki running at my day job, but they are Microsoft-heads. While I can probably sell them on trying Rails, they are definitely going to want the database to sit in our SQL Server instance with our other databases. I can''t get instiki to create the tables in sql server though (I''ve added ADO.rb, and gotten a connection). When I run 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/.
1998 May 13
1
Compiling warnings in 1.9.18p7
I get these messages when compiling on a Sun Sparc 5 running Solaris 2.6: Compiling ipc.c ipc.c: In fonction `api_RNetServerEnum': ipc.c:1194: warning: passing arg 4 of `qsort' from incompatible pointer type Compiling nmbd_incomingrequests.c nmbd_incomingrequests.c: In function `process_node_status_request': nmbd_incomingrequests.c:380: warning: passing arg 4 of `qsort' from
1997 Nov 11
1
automountd hangs
Hi Samba admins, I was wondering if any of you had problems with your automounter with Samba ? My environment is: Samba 1.9.17p4 on a Sparc20 running Solaris 2.5.1 with the home directories defined in the NIS+ tables. The client are all Win95 PC. Lately, we lose the automounter on the Sun host. Even logged in as root on the console I cannot 'cd' to the /home directory. We have
1998 May 14
3
Cannot use smbpasswd for new user
More information on the problem. A couple of days ago I posted a request for help for this error msg terre{testgb}73: smbpasswd Old SMB password: New SMB password: Retype new SMB password: /opt/samba/bin/smbpasswd: machine 127.0.0.1 rejected the session setup. Error was : ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.). This happens only
2006 Feb 22
9
Error 500
Hi, I''ve got a weird 500 error that I can''t fix. I''m using scgi with Apache2 on Fedora core 2. Status: 500 Internal Server Error Even when I launch dispatch.cgi from the command line, I get the 500 error. I don''t have any log entry written so I''m completely blind. I know that the app is fine because I can run it in the console and get my records from
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 Feb 23
1
Base path
Hi there I''m using scgi to interface a rails app with Apache 2. My app''s stylesheet and javascript tags add ''/scgi-bin/'' to the path, to stylesheets src attributes are "src=''/scgi-bin/stylesheets/style.css"; that''s bad. How can I fix this ?? -- _____________________________ Luc Boudreau -------------- next part -------------- An
1998 May 15
0
BUG: Re: Cannot use smbpasswd for new user (1.9.18p7)
-----Original Message----- From: SI-Gaetan Boudreau <boudreg@IRCM.UMontreal.CA> To: Andrej Borsenkow <borsenkow.msk@sni.de>; samba@samba.anu.edu.au <samba@samba.anu.edu.au> >> It has nothing to do with initial null passwords > >Thank you for taking time in trying to help me. > >The reason I suspect it does it's that it works for the other users, the >ones
1998 May 11
0
URGENT: cannot use smbpasswd
Since I upgraded from 1.9.18p3 to p4 (Friday May 8) the users cannot execute the smbpasswd command. I would appreciate any help as soon as possible plase. Thank you. Here is the output we get: terre{testgb}65: smbpasswd Old SMB password: New SMB password: Retype new SMB password: smbpasswd: machine 127.0.0.1 rejected the session request. Error was : code 131. --
2009 Dec 10
0
mv renames the wrong file
Hi, Using Samba 3.4.3 server on Ubuntu 9.10 (compiled myself, since Ubuntu came with Samba 3.4.0). Sometimes, mv commands don't do what I asked for! This morning, I was in my Videos share, in the "Movies/Baby Einstein Mozart/" directory. (I have the share mounted locally in /mnt/samba/Videos, on the same machine where samba server runs on.) I issued the following command: mv
1998 Apr 20
0
Printers print...don't print...print...don't print...
Hi Samba admins, I have a mysterious problems with printers. When you are in a Windows application and you click on the icon to print, you get no error messages anywhere but no paper output. You just click again (sometime you have to repeat twice) and finally it prints (one copy). It happens to everyone on all PC on all printers. PC are Windows 95, printers are network HP Laserjets setup