Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #8347 (closed enhancement: fixed)

Opened 2 years ago

Last modified 1 year ago

[PATCH] Please use $stderr instead of STDERR for the default logger device to enable easy capturing

Reported by: robholland Assigned to: minam
Priority: normal Milestone: 1.x
Component: Capistrano Version: edge
Severity: normal Keywords: logger
Cc:

Description

Capistrano::Logger currently uses STDERR as it's default device to send output to. This makes it difficult to capture output if we're in an environment where STDERR was closed, as it's a constant we can't change. Please use ruby's $stderr instead, so that it can be pointed at a file-like device which can capture the output easily.

Attachments

cli.rb_add_outputfile.patch (1.2 kB) - added by lhartley on 05/25/07 06:07:43.
patch to add "output to file" option
cli.rb_add_outputfile.2.patch (1.2 kB) - added by lhartley on 05/25/07 06:08:17.
patch to add "output to file" option
cli.rb_add_outputfile.3.patch (1.2 kB) - added by lhartley on 05/25/07 06:08:25.
patch to add "output to file" option
logger.rb_add_outputfile.patch (1.0 kB) - added by lhartley on 05/25/07 06:09:59.
changes to logger to support output to file or STDERR

Change History

05/25/07 06:07:43 changed by lhartley

  • attachment cli.rb_add_outputfile.patch added.

patch to add "output to file" option

05/25/07 06:08:17 changed by lhartley

  • attachment cli.rb_add_outputfile.2.patch added.

patch to add "output to file" option

05/25/07 06:08:25 changed by lhartley

  • attachment cli.rb_add_outputfile.3.patch added.

patch to add "output to file" option

05/25/07 06:09:59 changed by lhartley

  • attachment logger.rb_add_outputfile.patch added.

changes to logger to support output to file or STDERR

05/25/07 06:18:25 changed by lhartley

  • keywords set to logger.

well, I guess I hit the submit button/reloaded or something too many times...and i don't see how to remove them (perms?)...here is a crack at adding output to file support...I am new to ruby so, someone may want to clean it up...or tell me and I will, I would like to learn from it...other thing that might be added is output to both...I did not need that, so, left it out

05/25/07 10:05:57 changed by robholland

Please note that the attached patch doesn't actually help in my use case :) I'd still like it to default to $stderr not STDERR.

05/27/07 16:31:18 changed by josh

  • summary changed from Please use $stderr instead of STDERR for the default logger device to enable easy capturing to [PATCH] Please use $stderr instead of STDERR for the default logger device to enable easy capturing.

06/14/07 15:18:37 changed by minam

  • status changed from new to closed.
  • resolution set to fixed.

(In [7023]) default the logger output to rather than STDERR (closes #8347)