Re: [Mongrel] mongrel logging on win32 platform and win32 service

2006-08-25 Thread linux user
On 8/25/06, Luis Lavena [EMAIL PROTECTED] wrote:
On 8/25/06, linux user [EMAIL PROTECTED] wrote:[snip]
   No these files are not there. I tried to locate mongrel.log in production.log, but its not there. I only   have log/production.log but that was created by rails script when the
   application root was created and log/production.log is 0KB after load   testing mongrel for 1 hour. I am on Windows 2000 SP4. please help
   Daya, first of: post this to one mailing list, do not cross-post to  rails and mongrel, the correct place, in this case, is mongrel one.   Now, why you don't try the following?
   open a Command prompt window.  C:  cd C:\myspace\snapshot  mongrel_rails start -e production   wait until it is running... now check using windows explorer for
  log/*.log files inside that folder.   They should be there, I see them here when running in my app, with  both prerelease and stable. Hi Luis
 I just tried your suggestion and although mongrel starts at port 3000 by default the logs are still not created. I did a full scan of application root for *.log and there are no log files that are created by mongrel.
 I also tried running mongrel -B (debug) option and now I get in log/mongrel_debug folder files.log, objects.log, params.log, rails.log and thread.log, these as we know are not the logs I am interested in.
 I had installed mongrel through gems and since I didn't include --include-dependencies at that time, the installation process prompted me to select which mongrel I wanted installed I selected the first option for
 win32 which was 0.3.13.3. May be I need to re-install mongrel? I appreciate your help but I am lost in this simple problem.Ok Daya,I tried the same here, with a empty rails application and with a working one.
my logs are created, on development or production environment...Please, start a fresh rails application, set the database and clearthe log folder (delete *.log from there). Start mongrel with the same
sentence I put previously and check the logs created.If they got created, is somehow your application, if not... too weirdfor friday...--Luis LavenaMultimedia systems-Leaders are made, they are not born. They are made by hard effort,
which is the price which all of us must pay to achieve any goal thatis worthwhile.Vince Lombardi___Mongrel-users mailing list
Mongrel-users@rubyforge.orghttp://rubyforge.org/mailman/listinfo/mongrel-users
Luis

I tried this too an fresh rails application and use the following command to start mongrel

mongrel_rails start -c C:/temp/snap -e production

the only log file I get in the log folder are 
development.logmongrel_debug\files.log
production.logserver.logtest.log

and BTW I also re-installed mongrel 0.3.13.3 win32and mongrel-service but still no solution. 

I am begining to think its platform related Win2K SP4, I don't have access to XP. May be I need to re-install ruby  rails ?? but that would be ridiculous.

-daya
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] mongrel logging on win32 platform and win32 service

2006-08-25 Thread Luis Lavena
On 8/25/06, linux user [EMAIL PROTECTED] wrote:
[snip]

 Luis

 I tried this too an fresh rails application and use the following command to
 start mongrel

 mongrel_rails start -c C:/temp/snap -e production

 the only log file I get in the log folder are
 development.log
 mongrel_debug\files.log
 production.log
 server.log
 test.log


Before start rails you removed the empty logs? (the ones rails created
by default).

If they get created again, mongrel should be logging there, check
production.log for a the timestamp of the last logged event (after you
hit your webbrowser).

 and BTW I also re-installed mongrel 0.3.13.3 win32 and mongrel-service but
 still no solution.

 I am begining to think its platform related Win2K SP4, I don't have access
 to XP. May be I need to re-install ruby  rails ?? but that would be
 ridiculous.


I have installed ruby, One-Click-Installer and plain ruby-mswin32 on
XP (SP1SP2), W2K SP3 and SP4 and W2K3 Server, all without problems.

-- 
Luis Lavena
Multimedia systems
-
Leaders are made, they are not born. They are made by hard effort,
which is the price which all of us must pay to achieve any goal that
is worthwhile.
Vince Lombardi
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] mongrel logging on win32 platform and win32 service

2006-08-25 Thread Wilson Bilkovich
On 8/25/06, Luis Lavena [EMAIL PROTECTED] wrote:
 On 8/25/06, linux user [EMAIL PROTECTED] wrote:
 
  I am begining to think its platform related Win2K SP4, I don't have access
  to XP. May be I need to re-install ruby  rails ?? but that would be
  ridiculous.
 

 I have installed ruby, One-Click-Installer and plain ruby-mswin32 on
 XP (SP1SP2), W2K SP3 and SP4 and W2K3 Server, all without problems.


I've never seen Mongrel save a log file on Win32, and I use it every
day on Windows XP.
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] mongrel logging on win32 platform and win32 service

2006-08-25 Thread Luis Lavena
On 8/25/06, Wilson Bilkovich [EMAIL PROTECTED] wrote:
 On 8/25/06, Luis Lavena [EMAIL PROTECTED] wrote:
  On 8/25/06, linux user [EMAIL PROTECTED] wrote:
  
   I am begining to think its platform related Win2K SP4, I don't have access
   to XP. May be I need to re-install ruby  rails ?? but that would be
   ridiculous.
  
 
  I have installed ruby, One-Click-Installer and plain ruby-mswin32 on
  XP (SP1SP2), W2K SP3 and SP4 and W2K3 Server, all without problems.
 

 I've never seen Mongrel save a log file on Win32, and I use it every
 day on Windows XP.

Ok, what are you expect mongrel log? each file request like apache
(ala http logging)? the process and render time of the request?

What?

-- 
Luis Lavena
Multimedia systems
-
Leaders are made, they are not born. They are made by hard effort,
which is the price which all of us must pay to achieve any goal that
is worthwhile.
Vince Lombardi
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] mongrel logging on win32 platform and win32 service

2006-08-25 Thread linux user
On 8/25/06, Wilson Bilkovich [EMAIL PROTECTED] wrote:
On 8/25/06, Luis Lavena [EMAIL PROTECTED] wrote: On 8/25/06, linux user 
[EMAIL PROTECTED] wrote:   I am begining to think its platform related Win2K SP4, I don't have access  to XP. May be I need to re-install ruby  rails ?? but that would be
  ridiculous.  I have installed ruby, One-Click-Installer and plain ruby-mswin32 on XP (SP1SP2), W2K SP3 and SP4 and W2K3 Server, all without problems.I've never seen Mongrel save a log file on Win32, and I use it every
day on Windows XP.___Mongrel-users mailing listMongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users

I would have to agree with you Wilson to the point of -l (log_file) option http://mongrel.rubyforge.org/docs/howto.html. 

But by default mongrel does write stuff top log/your-environment.log file. The problem that I am facing is that the output from 'puts, p, print' on the console are not captured in this log file.

-daya
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] mongrel logging on win32 platform and win32 service

2006-08-25 Thread linux user
On 8/25/06, Luis Lavena [EMAIL PROTECTED] wrote:
On 8/25/06, linux user [EMAIL PROTECTED] wrote:[snip]
 Luis I should have checked the timestamp of production.log last time when I started mongrel -e production.Thanks I think I have solved the problem and I have found the conflicting
 option, but I have no decent explaination for it. Here is what I did 1. In my original application I deleted all log file and mongrel_debug folder and restarted mongrel in my config/environment/production.rb I have
 config.log_level = :debug config.log_path = 'log/production_debug.log' At this time the log folder has only one log file 'production_debug.log' and folder 'mongrel_debug' with 'files.log
'. So I get all the output from logger (at debug level) in 'log/production_debug.log'. But I still get the output from 'puts, p, print' on the console and nowhere in any log file.
 2. If I remove the logger configuration from my config/environments/production.rb, I still get output from 'puts, p, print' on the console. The only content on production.log at this time is (mostly statistical)
 Processing SnapshotController#print_letters (for 127.0.0.1 at 2006-08-25 10:51:17) [GET] Session ID: 022a23172e2328c2ba29f36a65e1ecbe Parameters: {action=print_letters, controller=snapshot}
 Redirected to http://localhost:4111/snapshot/letter/list Completed in 0.00010 (1 reqs/sec) | DB: 0.0 (0%) | 302 Found [ 
http://localhost/snapshot/snapshot/print_letters] I still need to capture the output on console to a log file, don't know how to do it. Are you able to capture output from 'puts, p, print' on the console to a log
 file???puts, p and print are directed to STDOUT, so a simple redirect in yourproduction.rb will do:STDOUT.reopen(log/request.log, 'a+')STDOUT.sync=true

I will try this, but since all my 4 mongrels on a single machine start from the same application-root, this would cause out of sequence statements in log/request.log. It would have been so much better to have logging on win32 where each mongrel will have its own log.


Or may be I should just start each mongrel from a different application-root folder but for that I will have use ActiveRecordStore for session synchronization and I can't use file store anymore.
That will do, unless mongrel is using STDERR to output to console,which I doubt.Are you plaining serve mongrel directly to the world? why not apache
or lighty? or even nginx?

I do have lighty in front of 4 mongrels. nginx is not supported on win32.
 thanx a megaton for helping me.A suggestion: stop cross-posting between rails and mongrel list. If
the problem is mongrel related, post here, if rails related, there,but try one place at a time.

I am not cross posting atleast not in the last 4-5 replies. 
--Luis LavenaMultimedia systems-Leaders are made, they are not born. They are made by hard effort,
which is the price which all of us must pay to achieve any goal thatis worthwhile.Vince Lombardi___Mongrel-users mailing list
Mongrel-users@rubyforge.orghttp://rubyforge.org/mailman/listinfo/mongrel-users
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] mongrel logging on win32 platform and win32 service

2006-08-25 Thread linux user
On 8/25/06, Luis Lavena [EMAIL PROTECTED] wrote:
On 8/25/06, linux user [EMAIL PROTECTED] wrote:[snip]
 I will try this, but since all my 4 mongrels on a single machine start from the same application-root, this would cause out of sequence statements in log/request.log. It would have been so much better to have logging on win32
 where each mongrel will have its own log. Or may be I should just start each mongrel from a different application-root folder but for that I will have use ActiveRecordStore for session
 synchronization and I can't use file store anymore.Do WEBrick log request to the log file? or it do that on *nix?By logging do you mean this?127.0.0.1 - - [25/Aug/2006:13:25:15 SA Eastern Standard Time] GET /
HTTP/1.1 200 7552- - /127.0.0.1 - - [25/Aug/2006:13:25:16 SA Eastern Standard Time] GET/_javascript_s/prototype.js HTTP/1.1 200 55149 
http://localhost:3000/- /_javascript_s/prototype.js127.0.0.1 - - [25/Aug/2006:13:25:16 SA Eastern Standard Time] GET/_javascript_s/effects.js HTTP/1.1 200 32871 
http://localhost:3000/ -/_javascript_s/effects.js127.0.0.1 - - [25/Aug/2006:13:25:16 SA Eastern Standard Time] GET/images/rails.png HTTP/1.1 200 1787 
http://localhost:3000/ -/images/rails.png
No by logging I mean capturing all output on console whether generated by puts,p,print or by mongrel in a log file.
If so, mongrel nor webrick do that, so the problem could be the railslogging mechanism.Maybe I'm to tired to think clearly in this problem...


I appreciate your help and I know the problem is kinda subtle and may be stupid too and I guess the only way out is get rid of my puts, p and print everywhere and just logger.debug statements.
 I do have lighty in front of 4 mongrels. nginx is not supported on win32.I know, I know, too tired to provide good comments, sorry.
   thanx a megaton for helping me. A suggestion: stop cross-posting between rails and mongrel list. If  the problem is mongrel related, post here, if rails related, there,
  but try one place at a time. I am not cross posting atleast not in the last 4-5 replies.copied from the headers:From: linux user 
[EMAIL PROTECTED] Mailed-By: rubyforge.orgReply-To: [EMAIL PROTECTED], 
mongrel-users@rubyforge.org--Luis LavenaMultimedia systems-Leaders are made, they are not born. They are made by hard effort,which is the price which all of us must pay to achieve any goal that
is worthwhile.Vince Lombardi___Mongrel-users mailing listMongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] mongrel logging on win32 platform and win32 service

2006-08-25 Thread Luis Lavena
On 8/25/06, linux user [EMAIL PROTECTED] wrote:
[snip]

 No by logging I mean capturing all output on console whether generated by
 puts,p,print or by mongrel in a log file.

Ohhh, you're trying to debug your app using puts, print and p?

bad Idea, follow Ezra suggestion, doing that could brake your ERb
renders or something worse...


 I appreciate your help and I know the problem is kinda subtle and may be
 stupid too and I guess the only way out is get rid of my puts, p and print
 everywhere and just logger.debug statements.


Thats sounds better :-)

Regards,

-- 
Luis Lavena
Multimedia systems
-
Leaders are made, they are not born. They are made by hard effort,
which is the price which all of us must pay to achieve any goal that
is worthwhile.
Vince Lombardi
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] mongrel logging on win32 platform and win32 service

2006-08-25 Thread linux user

On 8/25/06, Luis Lavena [EMAIL PROTECTED] wrote:
On 8/25/06, linux user [EMAIL PROTECTED] wrote:[snip]
 No by logging I mean capturing all output on console whether generated by puts,p,print or by mongrel in a log file.Ohhh, you're trying to debug your app using puts, print and p?bad Idea, follow Ezra suggestion, doing that could brake your ERb
renders or something worse...

is that because Rails is not threadsafe?
 I appreciate your help and I know the problem is kinda subtle and may be stupid too and I guess the only way out is get rid of my puts, p and print
 everywhere and just logger.debug statements.Thats sounds better :-)Regards,--Luis LavenaMultimedia systems-Leaders are made, they are not born. They are made by hard effort,
which is the price which all of us must pay to achieve any goal thatis worthwhile.Vince Lombardi___Mongrel-users mailing list
Mongrel-users@rubyforge.orghttp://rubyforge.org/mailman/listinfo/mongrel-users
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] mongrel logging on win32 platform and win32 service

2006-08-25 Thread Ezra Zygmuntowicz
On Aug 25, 2006, at 12:40 PM, linux user wrote: On 8/25/06, Luis Lavena [EMAIL PROTECTED] wrote: On 8/25/06, linux user [EMAIL PROTECTED] wrote:[snip]  No by logging I mean capturing all output on console whether generated by puts,p,print or by mongrel in a log file.Ohhh, you're trying to debug your app using puts, print and p?bad Idea, follow Ezra suggestion, doing that could brake your ERb renders or something worse...   is that because Rails is not threadsafe?	Nope its got nothing to do with threading. Its just that within the context of a web application stdout doesn't mean what you think it means. THats why you should just use the logger. Erb does its own thing with stdout so puts and print in rails is a nono.-Ezra___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] mongrel logging on win32 platform and win32 service

2006-08-25 Thread Zed Shaw
On Fri, 2006-08-25 at 11:29 -0400, Wilson Bilkovich wrote:
 On 8/25/06, Luis Lavena [EMAIL PROTECTED] wrote:
  On 8/25/06, linux user [EMAIL PROTECTED] wrote:
  
   I am begining to think its platform related Win2K SP4, I don't have access
   to XP. May be I need to re-install ruby  rails ?? but that would be
   ridiculous.
  
 
  I have installed ruby, One-Click-Installer and plain ruby-mswin32 on
  XP (SP1SP2), W2K SP3 and SP4 and W2K3 Server, all without problems.
 
 
 I've never seen Mongrel save a log file on Win32, and I use it every
 day on Windows XP.

Way to report that bug Wilson.  :-)

I'll build a pre-release of 0.3.13.4 for win32 today (after I squash the
memory leak) and see if there's something that might have been fixed
with the latest changes to the paths.


-- 
Zed A. Shaw
http://www.zedshaw.com/
http://mongrel.rubyforge.org/
http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help.

___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] mongrel logging on win32 platform and win32 service

2006-08-25 Thread Wilson Bilkovich
On 8/25/06, Zed Shaw [EMAIL PROTECTED] wrote:
 On Fri, 2006-08-25 at 11:29 -0400, Wilson Bilkovich wrote:
  On 8/25/06, Luis Lavena [EMAIL PROTECTED] wrote:
   On 8/25/06, linux user [EMAIL PROTECTED] wrote:
   
I am begining to think its platform related Win2K SP4, I don't have 
access
to XP. May be I need to re-install ruby  rails ?? but that would be
ridiculous.
   
  
   I have installed ruby, One-Click-Installer and plain ruby-mswin32 on
   XP (SP1SP2), W2K SP3 and SP4 and W2K3 Server, all without problems.
  
 
  I've never seen Mongrel save a log file on Win32, and I use it every
  day on Windows XP.

 Way to report that bug Wilson.  :-)

 I'll build a pre-release of 0.3.13.4 for win32 today (after I squash the
 memory leak) and see if there's something that might have been fixed
 with the latest changes to the paths.


Those stack traces are MINE. You think I'm just going to GIVE them to
the developer??
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] mongrel logging on win32 platform and win32 service

2006-08-24 Thread linux user
On 8/24/06, linux user [EMAIL PROTECTED] wrote:


Hi All

I am usingversion 0.3.13.3 and since there is no logging support for win32 application. I was wondering if it was possible to get any kind of logging at all.


I have tried tothese two options

1. Stream redirection using mongrel_rails start -c C:/myspace/snapshot -p 4111 -t 70 -e production -P log/mongrel-1.pid  C:\temp\mongrel-1.log

The console print the output stream and the mongrel-1.log file shows no content except the content generated after I kill the server with Ctrl-C.

2. win32 service mongrel_rails service::install -N snapshot1 -c C:\myspace\snapshot -p 4111 -e production -t 70. Now ofcourse the -l (log_file) option can't be used so where do I see the output/error logs?? 


So I am basically lost on a very simple thing.

Please help


TIA-daya

oh BTW

I also tried separate output and error stream redirections using 2myapp2.log 1myapp1.log but both these files donot get any content until and unless mongrel gets interrrupted by Ctrl-C which mean that all the stream content is being kept memory. This is a big problem and I don't know how to solve it.


TIA
-daya
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] mongrel logging on win32 platform and win32 service

2006-08-24 Thread Luis Lavena
On 8/24/06, linux user [EMAIL PROTECTED] wrote:

 Hi All

 I am using  version 0.3.13.3 and since there is no logging support for win32
 application. I was wondering if it was possible to get any kind of logging
 at all.

 I have tried to these two options

 1. Stream redirection using mongrel_rails start -c C:/myspace/snapshot -p
 4111 -t 70  -e production -P log/mongrel-1.pid  C:\temp\mongrel-1.log

 The console print the output stream and the mongrel-1.log file shows no
 content except the content generated after I kill the server with Ctrl-C.

 2. win32 service mongrel_rails service::install -N snapshot1 -c
 C:\myspace\snapshot -p 4111 -e production -t 70. Now ofcourse the -l
 (log_file) option can't be used so where do I see the output/error logs??


Have you tried check log/mongrel.log and log/production.log? there is
where mongrel outs the information.

 So I am basically lost on a very simple thing.

 Please help


 TIA
 -daya

 ___
 Mongrel-users mailing list
 Mongrel-users@rubyforge.org
 http://rubyforge.org/mailman/listinfo/mongrel-users




-- 
Luis Lavena
Multimedia systems
-
Leaders are made, they are not born. They are made by hard effort,
which is the price which all of us must pay to achieve any goal that
is worthwhile.
Vince Lombardi
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] mongrel logging on win32 platform and win32 service

2006-08-24 Thread Luis Lavena
On 8/24/06, linux user [EMAIL PROTECTED] wrote:
 On 8/24/06, Luis Lavena [EMAIL PROTECTED] wrote:

  On 8/24/06, linux user [EMAIL PROTECTED] wrote:
  
   Hi All
  
   I am using  version 0.3.13.3 and since there is no logging support for
 win32
   application. I was wondering if it was possible to get any kind of
 logging
   at all.
  
   I have tried to these two options
  
   1. Stream redirection using mongrel_rails start -c C:/myspace/snapshot
 -p
   4111 -t 70  -e production -P log/mongrel-1.pid  C:\temp\mongrel-1.log
  
   The console print the output stream and the mongrel-1.log file shows no
   content except the content generated after I kill the server with
 Ctrl-C.
  
   2. win32 service mongrel_rails service::install -N snapshot1 -c
   C:\myspace\snapshot -p 4111 -e production -t 70. Now ofcourse the -l
   (log_file) option can't be used so where do I see the output/error
 logs??
  
 
  Have you tried check log/mongrel.log and log/production.log? there is
  where mongrel outs the information.


 Is this in the root of the application folder or in the current working
 directory?

The application root directory, specified by the -c option.

Mongrel with Chdir into it, and start rails using it as current directory.


   So I am basically lost on a very simple thing.
  
   Please help
  
  
   TIA
   -daya
  
   ___
   Mongrel-users mailing list
   Mongrel-users@rubyforge.org
   http://rubyforge.org/mailman/listinfo/mongrel-users
  
  
 
 
  --
  Luis Lavena
  Multimedia systems
  -
  Leaders are made, they are not born. They are made by hard effort,
  which is the price which all of us must pay to achieve any goal that
  is worthwhile.
  Vince Lombardi
  ___
  Mongrel-users mailing list
  Mongrel-users@rubyforge.org
  http://rubyforge.org/mailman/listinfo/mongrel-users
 


 ___
 Mongrel-users mailing list
 Mongrel-users@rubyforge.org
 http://rubyforge.org/mailman/listinfo/mongrel-users




-- 
Luis Lavena
Multimedia systems
-
Leaders are made, they are not born. They are made by hard effort,
which is the price which all of us must pay to achieve any goal that
is worthwhile.
Vince Lombardi
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users