Skip to content

Commit

Permalink
Standardize formatting and content, add logging examples
Browse files Browse the repository at this point in the history
Signed-off-by: Misty Stanley-Jones <misty@docker.com>
  • Loading branch information
Misty Stanley-Jones committed Dec 29, 2016
1 parent b72b9d3 commit d536881
Show file tree
Hide file tree
Showing 3 changed files with 331 additions and 220 deletions.
10 changes: 4 additions & 6 deletions engine/admin/logging/gcplogs.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,11 @@ Below is an example of the logging options required to log to the default
logging destination which is discovered by querying the GCE metadata server.

docker run --log-driver=gcplogs \
--log-opt labels=location
--log-opt env=TEST
--log-opt gcp-log-cmd=true
--env "TEST=false"
--label location=west
--log-opt gcp-log-cmd=true \
--env "TEST=false" \
--label location=west \
your/application

This configuration also directs the driver to include in the payload the label
`location`, the environment variable `ENV`, and the command used to start the
container.
container.
Loading

0 comments on commit d536881

Please sign in to comment.