This is an automated email from the ASF dual-hosted git repository. pcongiusti pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 3fe4c27ac65439bbb43c437242ac74512ff4c68e Author: gre8t <akumagreatn...@gmail.com> AuthorDate: Tue Apr 26 16:24:46 2022 +0100 fixed typo error --- examples/traits/logging/Logging.java | 2 +- examples/traits/logging/README.md | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/traits/logging/Logging.java b/examples/traits/logging/Logging.java index 151a537f4..e3d24e1d6 100644 --- a/examples/traits/logging/Logging.java +++ b/examples/traits/logging/Logging.java @@ -16,7 +16,7 @@ */ // -// kamel run ./logging.java --trait logging.enabled=true \ +// kamel run ./Logging.java --trait logging.enabled=true \ // --trait logging.json=true --trait logging.level=info import org.apache.camel.Exchange; diff --git a/examples/traits/logging/README.md b/examples/traits/logging/README.md index 3c8e589b4..9f0eb8e41 100644 --- a/examples/traits/logging/README.md +++ b/examples/traits/logging/README.md @@ -4,15 +4,15 @@ This type of trait tells us what is going on in a running integration pod. It do Logs are enabled by default on an integration. Just run this example: - $kamel run logging.java + $ kamel run logging.java - $kamel logs logging + $ kamel logs logging Or you can instead get the pod name and print its logs using kubectl: - $kubectl get pods + $ kubectl get pods - $kubecttl logs <pod name> + $ kubecttl logs <pod name> You can configure the log output with the `logging traits` flag: @@ -28,7 +28,7 @@ for more traits options see this [Link.](https://camel.apache.org/camel-k/next/t manual log setting example using `logging trait`: - $kamel run ./logging.java --trait logging.enabled=true --trait logging.json=true --trait logging.level=info + $ kamel run ./logging.java --trait logging.enabled=true --trait logging.json=true --trait logging.level=info **Output** @@ -43,8 +43,8 @@ The output of this result would give this: ``` - Logging would be enabled, and it's output would be in josn. But, there would be no colors for easy skimming. - You would need to use your own jq to pretty print and parse the json output. -## using modeline +## Using modeline An example of using a `modeline` to set the `logging traits` : - $kamel run ./loggingModeline.java + $ kamel run ./loggingModeline.java