linux user
2006-Aug-24 22:28 UTC
[Mongrel] mongrel logging on win32 platform and win32 service
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?? So I am basically lost on a very simple thing. Please help TIA -daya -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060824/7b3d6648/attachment.html
linux user
2006-Aug-24 22:32 UTC
[Mongrel] mongrel logging on win32 platform and win32 service
On 8/24/06, linux user <fanoflinux at gmail.com> 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?? > > 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 "2> myapp2.log 1>myapp1.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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060824/a69769c4/attachment.html
linux user
2006-Aug-25 00:34 UTC
[Mongrel] mongrel logging on win32 platform and win32 service
On 8/24/06, Luis Lavena <luislavena at gmail.com> wrote:> > On 8/24/06, linux user <fanoflinux at gmail.com> 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?> So I am basically lost on a very simple thing. > > > > Please help > > > > > > TIA > > -daya > > > > _______________________________________________ > > Mongrel-users mailing list > > Mongrel-users at 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 at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060824/739ac918/attachment.html
linux user
2006-Aug-25 13:17 UTC
[Mongrel] mongrel logging on win32 platform and win32 service
On 8/24/06, Luis Lavena <luislavena at gmail.com> wrote:> > On 8/24/06, linux user <fanoflinux at gmail.com> 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.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> So I am basically lost on a very simple thing. > > > > Please help > > > > > > TIA > > -daya > > > > _______________________________________________ > > Mongrel-users mailing list > > Mongrel-users at 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 at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060825/3a6ed020/attachment.html
Luis Lavena
2006-Aug-25 13:59 UTC
[Mongrel] mongrel logging on win32 platform and win32 service
On 8/25/06, linux user <fanoflinux at gmail.com> wrote:> > On 8/24/06, Luis Lavena <luislavena at gmail.com> wrote: > > On 8/24/06, linux user <fanoflinux at gmail.com> 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. > > > > 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 helpDaya, 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.> -daya > > > > > So I am basically lost on a very simple thing. > > > > > > Please help > > > > > > > > > TIA > > > -daya > > > > > > _______________________________________________ > > > Mongrel-users mailing list > > > Mongrel-users at 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 at rubyforge.org > > http://rubyforge.org/mailman/listinfo/mongrel-users > > > > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at 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
linux user
2006-Aug-25 14:22 UTC
[Mongrel] mongrel logging on win32 platform and win32 service
On 8/25/06, Luis Lavena <luislavena at gmail.com> wrote:> > On 8/25/06, linux user <fanoflinux at gmail.com> wrote: > > > > On 8/24/06, Luis Lavena <luislavena at gmail.com> wrote: > > > On 8/24/06, linux user <fanoflinux at gmail.com> 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. > > > > > > > > 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. -daya> -daya > > > > > > > > So I am basically lost on a very simple thing. > > > > > > > > Please help > > > > > > > > > > > > TIA > > > > -daya > > > > > > > > _______________________________________________ > > > > Mongrel-users mailing list > > > > Mongrel-users at 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 at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/mongrel-users > > > > > > > > > _______________________________________________ > > Mongrel-users mailing list > > Mongrel-users at 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 at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060825/fed8f839/attachment.html
Luis Lavena
2006-Aug-25 14:42 UTC
[Mongrel] mongrel logging on win32 platform and win32 service
On 8/25/06, linux user <fanoflinux at gmail.com> 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 clear the 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 weird for friday... -- 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
linux user
2006-Aug-25 15:07 UTC
[Mongrel] mongrel logging on win32 platform and win32 service
On 8/25/06, Luis Lavena <luislavena at gmail.com> wrote:> > On 8/25/06, linux user <fanoflinux at gmail.com> 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.logand > > 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 clear > the 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 weird > for friday... > > -- > 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 at rubyforge.org > http://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.log mongrel_debug\files.log production.log server.log test.log 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. -daya -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060825/3a1a839b/attachment-0001.html
Luis Lavena
2006-Aug-25 15:18 UTC
[Mongrel] mongrel logging on win32 platform and win32 service
On 8/25/06, linux user <fanoflinux at gmail.com> 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 (SP1&SP2), 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
Wilson Bilkovich
2006-Aug-25 15:29 UTC
[Mongrel] mongrel logging on win32 platform and win32 service
On 8/25/06, Luis Lavena <luislavena at gmail.com> wrote:> On 8/25/06, linux user <fanoflinux at gmail.com> 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 (SP1&SP2), 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.
Luis Lavena
2006-Aug-25 15:56 UTC
[Mongrel] mongrel logging on win32 platform and win32 service
On 8/25/06, Wilson Bilkovich <wilsonb at gmail.com> wrote:> On 8/25/06, Luis Lavena <luislavena at gmail.com> wrote: > > On 8/25/06, linux user <fanoflinux at gmail.com> 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 (SP1&SP2), 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
linux user
2006-Aug-25 15:57 UTC
[Mongrel] mongrel logging on win32 platform and win32 service
On 8/25/06, Luis Lavena <luislavena at gmail.com> wrote:> > On 8/25/06, linux user <fanoflinux at gmail.com> 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 (SP1&SP2), 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 at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >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 (10000 reqs/sec) | DB: 0.00000 (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??? thanx a megaton for helping me. -daya -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060825/20582c2f/attachment-0001.html
linux user
2006-Aug-25 16:01 UTC
[Mongrel] mongrel logging on win32 platform and win32 service
On 8/25/06, Wilson Bilkovich <wilsonb at gmail.com> wrote:> > On 8/25/06, Luis Lavena <luislavena at gmail.com> wrote: > > On 8/25/06, linux user <fanoflinux at gmail.com> 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 (SP1&SP2), 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 at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060825/6ac4aadd/attachment.html
linux user
2006-Aug-25 16:06 UTC
[Mongrel] mongrel logging on win32 platform and win32 service
On 8/25/06, Luis Lavena <luislavena at gmail.com> wrote:> > On 8/25/06, Wilson Bilkovich <wilsonb at gmail.com> wrote: > > On 8/25/06, Luis Lavena <luislavena at gmail.com> wrote: > > > On 8/25/06, linux user <fanoflinux at gmail.com> 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 (SP1&SP2), 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 at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >The problem that I am facing is that the output from ''puts, p, print'' on the console are not captured in the mongrel log file (in my case production.log) on Win2K SP4. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060825/dc35ca52/attachment.html
Luis Lavena
2006-Aug-25 16:14 UTC
[Mongrel] mongrel logging on win32 platform and win32 service
On 8/25/06, linux user <fanoflinux at gmail.com> 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 (10000 reqs/sec) | DB: 0.00000 (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 your production.rb will do: STDOUT.reopen("log/request.log", ''a+'') STDOUT.sync=true 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?> 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. -- 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
linux user
2006-Aug-25 16:23 UTC
[Mongrel] mongrel logging on win32 platform and win32 service
On 8/25/06, Luis Lavena <luislavena at gmail.com> wrote:> > On 8/25/06, linux user <fanoflinux at gmail.com> 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 (10000 reqs/sec) | DB: 0.00000 (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 your > production.rb will do: > > STDOUT.reopen("log/request.log", ''a+'') > STDOUT.sync=trueI 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 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 at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060825/8b70e584/attachment-0001.html
Ezra Zygmuntowicz
2006-Aug-25 16:28 UTC
Re: [Mongrel] mongrel logging on win32 platform and win32 service
> > > The problem that I am facing is that the output from ''puts, p, > print'' on the console are not captured in the mongrel log file (in > my case production.log) on Win2K SP4. > _______________________________________________ > Mongrel-users mailing list > Mongrel-users-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org > http://rubyforge.org/mailman/listinfo/mongrel-usersHey- You should never use puts, print or p in a rails app. It is not tha way to do things. And it will cause bugs and crashes in your applications. If you want something to be weritten to the log then use the logger interface like it is supposed to be used. logger.debug "hey Im in the log!" PLease save yourself the trouble of debugging this later and *do not* use puts, print or p in a rails app *ever* -Ezra _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Luis Lavena
2006-Aug-25 16:34 UTC
[Mongrel] mongrel logging on win32 platform and win32 service
On 8/25/06, linux user <fanoflinux at gmail.com> 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 /javascripts/prototype.js HTTP/1.1" 200 55149 http://localhost:3000/ -> /javascripts/prototype.js 127.0.0.1 - - [25/Aug/2006:13:25:16 SA Eastern Standard Time] "GET /javascripts/effects.js HTTP/1.1" 200 32871 http://localhost:3000/ -> /javascripts/effects.js 127.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 If so, mongrel nor webrick do that, so the problem could be the rails logging mechanism. Maybe I''m to tired to think clearly in this problem...> 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 <fanof... at gmail.com> Mailed-By: rubyforge.org Reply-To: rails at lists.rubyonrails.org, mongrel-users at rubyforge.org -- 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
linux user
2006-Aug-25 16:40 UTC
[Mongrel] mongrel logging on win32 platform and win32 service
On 8/25/06, Luis Lavena <luislavena at gmail.com> wrote:> On 8/25/06, linux user <fanoflinux at gmail.com> 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 > /javascripts/prototype.js HTTP/1.1" 200 55149 http://localhost:3000/ > -> /javascripts/prototype.js > 127.0.0.1 - - [25/Aug/2006:13:25:16 SA Eastern Standard Time] "GET > /javascripts/effects.js HTTP/1.1" 200 32871 http://localhost:3000/ -> > /javascripts/effects.js > 127.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.pngNo 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 rails > logging 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 <fanof... at gmail.com> Mailed-By: rubyforge.org > Reply-To: rails at lists.rubyonrails.org, mongrel-users at rubyforge.org > > -- > 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 at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060825/b1bc7d06/attachment.html
Luis Lavena
2006-Aug-25 16:45 UTC
[Mongrel] mongrel logging on win32 platform and win32 service
On 8/25/06, linux user <fanoflinux at gmail.com> 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
linux user
2006-Aug-25 19:40 UTC
[Mongrel] mongrel logging on win32 platform and win32 service
On 8/25/06, Luis Lavena <luislavena at gmail.com> wrote:> > On 8/25/06, linux user <fanoflinux at gmail.com> 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 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 at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060825/b00d05c0/attachment.html
Zed Shaw
2006-Aug-25 23:08 UTC
[Mongrel] mongrel logging on win32 platform and win32 service
On Fri, 2006-08-25 at 11:29 -0400, Wilson Bilkovich wrote:> On 8/25/06, Luis Lavena <luislavena at gmail.com> wrote: > > On 8/25/06, linux user <fanoflinux at gmail.com> 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 (SP1&SP2), 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.
Wilson Bilkovich
2006-Aug-26 00:08 UTC
[Mongrel] mongrel logging on win32 platform and win32 service
On 8/25/06, Zed Shaw <zedshaw at zedshaw.com> wrote:> On Fri, 2006-08-25 at 11:29 -0400, Wilson Bilkovich wrote: > > On 8/25/06, Luis Lavena <luislavena at gmail.com> wrote: > > > On 8/25/06, linux user <fanoflinux at gmail.com> 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 (SP1&SP2), 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??
Ezra Zygmuntowicz
2006-Nov-04 01:53 UTC
[Rails] Re: [Mongrel] mongrel logging on win32 platform and win32 service
> > > The problem that I am facing is that the output from ''puts, p, > print'' on the console are not captured in the mongrel log file (in > my case production.log) on Win2K SP4. > _______________________________________________ > Mongrel-users mailing list > Mongrel-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-usersHey- You should never use puts, print or p in a rails app. It is not tha way to do things. And it will cause bugs and crashes in your applications. If you want something to be weritten to the log then use the logger interface like it is supposed to be used. logger.debug "hey Im in the log!" PLease save yourself the trouble of debugging this later and *do not* use puts, print or p in a rails app *ever* -Ezra
Luis Lavena
2006-Nov-04 02:48 UTC
[Rails] Re: [Mongrel] mongrel logging on win32 platform and win32 service
On 8/24/06, linux user <fanoflinux@gmail.com> 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
Luis Lavena
2006-Nov-04 02:48 UTC
[Rails] Re: [Mongrel] mongrel logging on win32 platform and win32 service
On 8/24/06, linux user <fanoflinux@gmail.com> wrote:> On 8/24/06, Luis Lavena <luislavena@gmail.com> wrote: > > > On 8/24/06, linux user <fanoflinux@gmail.com> 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
Ezra Zygmuntowicz
2006-Nov-04 02:49 UTC
[Rails] Re: [Mongrel] mongrel logging on win32 platform and win32 service
On Aug 25, 2006, at 12:40 PM, linux user wrote:> > > On 8/25/06, Luis Lavena <luislavena@gmail.com> wrote: > On 8/25/06, linux user <fanoflinux@gmail.com> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060825/e1d9f409/attachment-0001.html