diff --git a/.readme-partials.yaml b/.readme-partials.yaml index 2b86fa9fd..0f353fb59 100644 --- a/.readme-partials.yaml +++ b/.readme-partials.yaml @@ -8,16 +8,26 @@ custom_content: | ```xml - + - INFO + INFO - application.log - - /path/to/credentials.json - com.example.enhancers.TestLoggingEnhancer - com.example.enhancers.AnotherEnhancer - WARN + + + application.log + + + WARNING + + + + + + /path/to/credentials/file + + + com.example.enhancers.TestLoggingEnhancer + com.example.enhancers.AnotherEnhancer diff --git a/README.md b/README.md index 4d2abd23c..d15ddabee 100644 --- a/README.md +++ b/README.md @@ -73,28 +73,28 @@ See [Logback filters](https://logback.qos.ch/manual/filters.html#thresholdFilter ```xml - + INFO - + application.log - + WARNING - + - + /path/to/credentials/file - + com.example.enhancers.TestLoggingEnhancer com.example.enhancers.AnotherEnhancer - + @@ -123,6 +123,17 @@ public class TestLogger { +## Samples + +Samples are in the [`samples/`](https://github.com/googleapis/java-logging-logback/tree/master/samples) directory. The samples' `README.md` +has instructions for running the samples. + +| Sample | Source Code | Try it | +| --------------------------- | --------------------------------- | ------ | +| Quickstart | [source code](https://github.com/googleapis/java-logging-logback/blob/master/samples/snippets/src/main/java/com/example/logging/logback/Quickstart.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-logging-logback&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/logging/logback/Quickstart.java) | +| Example Enhancer | [source code](https://github.com/googleapis/java-logging-logback/blob/master/samples/snippets/src/main/java/com/example/logging/logback/enhancers/ExampleEnhancer.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-logging-logback&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/logging/logback/enhancers/ExampleEnhancer.java) | + + ## Troubleshooting