unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* Log File Location
@ 2009-11-19  2:06 Preston Marshall
  2009-11-19  2:47 ` Michael Guterl
  0 siblings, 1 reply; 4+ messages in thread
From: Preston Marshall @ 2009-11-19  2:06 UTC (permalink / raw)
  To: mongrel-unicorn

This may be a dumb question, but where can I see the error logs that  
are usually displayed when unicorn is not daemonized?  The  
production.log file is empty in my app.  Everything is currently  
running as root.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Log File Location
  2009-11-19  2:06 Log File Location Preston Marshall
@ 2009-11-19  2:47 ` Michael Guterl
  2009-11-19  3:25   ` Dylan Stamat
  2009-11-19  6:54   ` Eric Wong
  0 siblings, 2 replies; 4+ messages in thread
From: Michael Guterl @ 2009-11-19  2:47 UTC (permalink / raw)
  To: unicorn list

On Wed, Nov 18, 2009 at 9:06 PM, Preston Marshall
<preston@synergyeoc.com> wrote:
> This may be a dumb question, but where can I see the error logs that are
> usually displayed when unicorn is not daemonized?  The production.log file
> is empty in my app.  Everything is currently running as root.

I'm not sure where the logs are directed by default, but I set their
location in my unicorn config like so:

stdout_path '/home/deploy/public_html/rm/current/log/unicorn.log'
stderr_path '/home/deploy/public_html/rm/current/log/unicorn-error.log'

More information here: http://unicorn.bogomips.org/Unicorn/Configurator.html

Best,
Michael Guterl
_______________________________________________
mongrel-unicorn mailing list
mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Log File Location
  2009-11-19  2:47 ` Michael Guterl
@ 2009-11-19  3:25   ` Dylan Stamat
  2009-11-19  6:54   ` Eric Wong
  1 sibling, 0 replies; 4+ messages in thread
From: Dylan Stamat @ 2009-11-19  3:25 UTC (permalink / raw)
  To: unicorn list



On Nov 18, 2009, at 6:47 PM, Michael Guterl wrote:

> On Wed, Nov 18, 2009 at 9:06 PM, Preston Marshall
> <preston@synergyeoc.com> wrote:
>> This may be a dumb question, but where can I see the error logs that are
>> usually displayed when unicorn is not daemonized?  The production.log file
>> is empty in my app.  Everything is currently running as root.
> 
> I'm not sure where the logs are directed by default, but I set their
> location in my unicorn config like so:
> 
> stdout_path '/home/deploy/public_html/rm/current/log/unicorn.log'
> stderr_path '/home/deploy/public_html/rm/current/log/unicorn-error.log'
> 
> More information here: http://unicorn.bogomips.org/Unicorn/Configurator.html
> 
> Best,
> Michael Guterl
> _______________________________________________
> mongrel-unicorn mailing list
> mongrel-unicorn@rubyforge.org
> http://rubyforge.org/mailman/listinfo/mongrel-unicorn

I ended up doing something like:

unicorn_logger = Logger.new("/home/xxxxxx/current/log/unicorn.log")                                                                                                                                                           
unicorn_logger.formatter = Logger::Formatter.new                                                                                                                                                                                     
logger unicorn_logger

... but, I think you can do this as well:
Configurator::DEFAULTS[:logger].formatter = Logger::Formatter.new

See:  http://rubyforge.org/pipermail/mongrel-unicorn/2009-November/000147.html

==
Dylan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Log File Location
  2009-11-19  2:47 ` Michael Guterl
  2009-11-19  3:25   ` Dylan Stamat
@ 2009-11-19  6:54   ` Eric Wong
  1 sibling, 0 replies; 4+ messages in thread
From: Eric Wong @ 2009-11-19  6:54 UTC (permalink / raw)
  To: unicorn list

Michael Guterl <mguterl@gmail.com> wrote:
> On Wed, Nov 18, 2009 at 9:06 PM, Preston Marshall
> <preston@synergyeoc.com> wrote:
> > This may be a dumb question, but where can I see the error logs that are
> > usually displayed when unicorn is not daemonized?  The production.log file
> > is empty in my app.  Everything is currently running as root.
> 
> I'm not sure where the logs are directed by default, but I set their

They go to /dev/null by default when daemonizing.  But yes, it's
recommended that you configure them to something like below:

> location in my unicorn config like so:
> 
> stdout_path '/home/deploy/public_html/rm/current/log/unicorn.log'
> stderr_path '/home/deploy/public_html/rm/current/log/unicorn-error.log'

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-11-19  6:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-19  2:06 Log File Location Preston Marshall
2009-11-19  2:47 ` Michael Guterl
2009-11-19  3:25   ` Dylan Stamat
2009-11-19  6:54   ` Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/unicorn.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).