Skip to content

Create more log kamelets #2504

@skin27

Description

@skin27

Currently, there is a log Kamelet (action and sink):

Over time, this became a bit big, because of the number of parameters needed.

The questions are:

  1. How can the number of parameters be low to not overwhelm new users?
  2. How can the number of parameters be complete to cater advanced users?

I would propose to split logging into 4 kamelets:

  1. Log
  2. Log-quick
  3. Log-data
  4. Log-message

Details per Kamelet

  1. Log

This is the log Kamelet that most users can use. I would keep the number of parameters low (using a convention-over-configuration approach). This could be the parameters:

  • level
  • name (loggerName)
  • showBody
  • showBodyType
  • showHeaders
  • showProperties
  1. Log-quick

This can be a Kamelet without parameters to quickly log something.

The URI could be

log:quick-log-action?showAll=true&multiline=true

If you want to provide some minimal parameters, then only provide level and name with good defaults.

  1. Log-data

This can be a Kamelet with most log parameters for advanced user. These are all the parameters of the current log Kamelet +

  • plain
  • style
  • showCaughtException (formatting)
  • showException (formatting)
  • showExchangeId
  • showVariables
  1. Log-message

This Kamelet uses the log-eip (https://camel.apache.org/components/4.10.x/eips/log-eip.html) with the following parameters:

  • level
  • name
  • language
  • message

In this way, these 4 Kamelets would cover most uses cases for most users.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions