Browse code

Touch up 'docker logs' documentation.

* Update format for 'Note:' to match other pages.
* Add link to Go's RFC3339Nano timestamp information.

Signed-off-by: Charles Chan <charleswhchan@users.noreply.github.com>

Charles Chan authored on 2015/09/20 05:54:22
Showing 1 changed files
... ...
@@ -20,8 +20,8 @@ weight=1
20 20
       -t, --timestamps=false    Show timestamps
21 21
       --tail="all"              Number of lines to show from the end of the logs
22 22
 
23
-NOTE: this command is available only for containers with `json-file` and
24
-`journald` logging drivers.
23
+> **Note**: this command is available only for containers with `json-file` and
24
+> `journald` logging drivers.
25 25
 
26 26
 The `docker logs` command batch-retrieves logs present at the time of execution.
27 27
 
... ...
@@ -31,8 +31,8 @@ the container's `STDOUT` and `STDERR`.
31 31
 Passing a negative number or a non-integer to `--tail` is invalid and the
32 32
 value is set to `all` in that case.
33 33
 
34
-The `docker logs --timestamp` commands will add an RFC3339Nano
35
-timestamp, for example `2014-09-16T06:17:46.000000000Z`, to each
34
+The `docker logs --timestamp` commands will add an [RFC3339Nano timestamp](https://golang.org/pkg/time/#pkg-constants)
35
+, for example `2014-09-16T06:17:46.000000000Z`, to each
36 36
 log entry. To ensure that the timestamps for are aligned the
37 37
 nano-second part of the timestamp will be padded with zero when necessary.
38 38