1. Home
  2. ...
  3. Enterprise Integration Patterns (EIPs)
  4. Logger

Logger

Learn how to use EIPs

The Logger EIP records messages for monitoring and debugging.

Parameters

Parameter
Description
Default value
Type
MessageDisplays the text of the message that will be logged.String
LoggingLevelDisplays the severity level of the log:
• Trace
• Debug
• Info
• Warn
• Error
• Off
INFOLoggingLevel
LoggingNameLog nameString
MarkerAllows adding a "mark" or "tag" to messages through the SLF4J Marker (Simple Logging Façade for Java). This is useful for categorizing and filtering logs based on specific criteria.String
NOTE

Severity levels of a log indicate the severity of events recorded in systems.
Each level serves to categorize the importance of messages and assist in debugging, monitoring, and system analysis. The INFO level is the most common level for general execution information.

IMPORTANT

The message text goes through the redaction of sensitive values. The value that follows a sensitive name such as password=, text in the Bearer, Basic or JWT format and the password in a URI of the form scheme://user:password@host are written as <redacted>. The value of a secure variable, of an Authorization credential or of a Data Source password is also redacted, as long as it has 8 characters or more. A shorter value is redacted only after a sensitive name or in a recognized format, an unquoted value is redacted only up to the first space, &, ' or ", and a URI password is not redacted when it or the user contains, unencoded, a space, /, ?, #, a double quote or a backslash that looks like the end of a text. Put the value in quotes, encode the character or use a secure variable. See the full list.

Example

In the snippet below, the log has an ID and a description.

The message parameter logs the message Entered block 1 at the INFO level.

In addition to the severity level, the snippet contains a marker to assist in its categorization.

How happy are you with this page?

We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more