Skip to content

Commit

Permalink
Add level property to Log Sink
Browse files Browse the repository at this point in the history
  • Loading branch information
tadayosi authored and oscerd committed Nov 8, 2022
1 parent 0d546b3 commit 2447c28
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
15 changes: 14 additions & 1 deletion kamelets/log-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ spec:
A sink that logs all data that it receives, useful for debugging purposes.
type: object
properties:
level:
title: Log Level
description: Logging level to use
type: string
default: "INFO"
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:select:TRACE'
- 'urn:alm:descriptor:com.tectonic.ui:select:DEBUG'
- 'urn:alm:descriptor:com.tectonic.ui:select:INFO'
- 'urn:alm:descriptor:com.tectonic.ui:select:WARN'
- 'urn:alm:descriptor:com.tectonic.ui:select:ERROR'
- 'urn:alm:descriptor:com.tectonic.ui:select:OFF'
showHeaders:
title: Show Headers
description: Show the headers received
Expand All @@ -55,7 +67,8 @@ spec:
uri: "kamelet:source"
steps:
- to:
uri: "log:info"
uri: "log:log-sink"
parameters:
level: "{{?level}}"
showHeaders: "{{?showHeaders}}"
showStreams: "{{?showStreams}}"
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ spec:
A sink that logs all data that it receives, useful for debugging purposes.
type: object
properties:
level:
title: Log Level
description: Logging level to use
type: string
default: "INFO"
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:select:TRACE'
- 'urn:alm:descriptor:com.tectonic.ui:select:DEBUG'
- 'urn:alm:descriptor:com.tectonic.ui:select:INFO'
- 'urn:alm:descriptor:com.tectonic.ui:select:WARN'
- 'urn:alm:descriptor:com.tectonic.ui:select:ERROR'
- 'urn:alm:descriptor:com.tectonic.ui:select:OFF'
showHeaders:
title: Show Headers
description: Show the headers received
Expand All @@ -55,7 +67,8 @@ spec:
uri: "kamelet:source"
steps:
- to:
uri: "log:info"
uri: "log:log-sink"
parameters:
level: "{{?level}}"
showHeaders: "{{?showHeaders}}"
showStreams: "{{?showStreams}}"

0 comments on commit 2447c28

Please sign in to comment.