(Quick Reference)

cf-logs

Purpose

Displays logs for an instance.

Description

Displays log files for an instance to the console, or to a file if specified. The files include:

  • logs/stderr.log
  • logs/stdout.log
  • logs/startup.log

All files are displayed unless one or more of stderr, stdout, or startup are specified.

Usage:

grails cf-logs [--appname] [destination] [--instance] [--stderr] [--stdout] [--startup]

Required arguments: none .

Optional arguments:

  • appname - The name of the application
  • destination - Filename to write a single log to
  • instance - The application instance number; defaults to 1
  • stderr - If specified displays stderr.log
  • stdout - If specified displays stdout.log
  • startup - If specified displays startup.log