Rendering fixes, part 2

This commit is contained in:
John Mulhausen 2016-10-03 16:05:09 -07:00
parent e8bd2f2c1c
commit 9204a64925
3 changed files with 54 additions and 62 deletions

View file

@ -266,74 +266,63 @@ The `log` subsection configures the behavior of the logging system. The logging
system outputs everything to stdout. You can adjust the granularity and format system outputs everything to stdout. You can adjust the granularity and format
with this configuration section. with this configuration section.
log: ```
level: debug log:
formatter: text level: debug
fields: formatter: text
service: registry fields:
environment: staging service: registry
environment: staging
```
<table> <table>
<tr> <tr>
<th>Parameter</th> <th>Parameter</th>
<th>Required</th> <th>Required</th>
<th>Description</th> <th>Description</th>
</tr> </tr>
<tr> <tr>
<td> <td><code>level</code></td>
<code>level</code> <td>no</td>
</td> <td>Sets the sensitivity of logging output. Permitted values are
<td> <code>error</code>, <code>warn</code>, <code>info</code> and
no <code>debug</code>. The default is <code>info</code>.
</td> </td>
<td> </tr>
Sets the sensitivity of logging output. Permitted values are <tr>
<code>error</code>, <code>warn</code>, <code>info</code> and <td><code>formatter</code></td>
<code>debug</code>. The default is <code>info</code>. <td>no</td>
</td> <td>This selects the format of logging output. The format primarily affects how keyed attributes for a log line are encoded. Options are <code>text</code>, <code>json</code> or
</tr> <code>logstash</code>. The default is <code>text</code>.
<tr> </td>
<td> </tr>
<code>formatter</code> <tr>
</td> <td>
<td> <code>fields</code>
no </td>
</td> <td>no</td>
<td> <td>A map of field names to values. These are added to every log line for the context. This is useful for identifying log messages source after being mixed in other systems.
This selects the format of logging output. The format primarily affects how keyed </td>
attributes for a log line are encoded. Options are <code>text</code>, <code>json</code> or </tr>
<code>logstash</code>. The default is <code>text</code>.
</td>
</tr>
<tr>
<td>
<code>fields</code>
</td>
<td>
no
</td>
<td>
A map of field names to values. These are added to every log line for
the context. This is useful for identifying log messages source after
being mixed in other systems.
</td>
</table> </table>
## hooks ## hooks
hooks: ```
- type: mail hooks:
levels: - type: mail
- panic levels:
options: - panic
smtp: options:
addr: smtp.sendhost.com:25 smtp:
username: sendername addr: smtp.sendhost.com:25
password: password username: sendername
insecure: true password: password
from: name@sendhost.com insecure: true
to: from: name@sendhost.com
- name@receivehost.com to:
- name@receivehost.com
```
The `hooks` subsection configures the logging hooks' behavior. This subsection The `hooks` subsection configures the logging hooks' behavior. This subsection
includes a sequence handler which you can use for sending mail, for example. includes a sequence handler which you can use for sending mail, for example.

View file

@ -119,6 +119,7 @@ image manifest based on the Content-Type returned in the HTTP response.
## Example Manifest List ## Example Manifest List
*Example showing a simple manifest list pointing to image manifests for two platforms:* *Example showing a simple manifest list pointing to image manifests for two platforms:*
```json ```json
{ {
"schemaVersion": 2, "schemaVersion": 2,
@ -227,6 +228,7 @@ image. It's the direct replacement for the schema-1 manifest.
## Example Image Manifest ## Example Image Manifest
*Example showing an image manifest:* *Example showing an image manifest:*
```json ```json
{ {
"schemaVersion": 2, "schemaVersion": 2,

View file

@ -246,6 +246,7 @@ The CloudFront distribution must be created such that the `Origin Path` is set t
Here the `middleware` option is used. It is still important to keep the `storage` option as CloudFront will only handle `pull` actions; `push` actions are still directly written to S3. Here the `middleware` option is used. It is still important to keep the `storage` option as CloudFront will only handle `pull` actions; `push` actions are still directly written to S3.
The following example shows what you will need at minimum: The following example shows what you will need at minimum:
``` ```
... ...
storage: storage: