Method: Unicorn::Configurator#stderr_path

Defined in:
lib/unicorn/configurator.rb

#stderr_path(path) ⇒ Object

Allow redirecting $stderr to a given path. Unlike doing this from the shell, this allows the unicorn process to know the path its writing to and rotate the file if it is used for logging. The file will be opened with the File::APPEND flag and writes synchronized to the kernel (but not necessarily to disk) so multiple processes can safely append to it.

If you are daemonizing and using the default logger, it is important to specify this as errors will otherwise be lost to /dev/null. Some applications/libraries may also triggering warnings that go to stderr, and they will end up here.


589
590
591
# File 'lib/unicorn/configurator.rb', line 589

def stderr_path(path)
  set_path(:stderr_path, path)
end