Announcement Announcement Module
Collapse
No announcement yet.
Conditional expression evaluation within a logger-channel-adapter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Conditional expression evaluation within a logger-channel-adapter

    Hello!

    As far as I understand from sources of org.springframework.integration.handler.LoggingHan dler it will always evaluate the expression. Even if the log level is not enabled for current logger. Why don't move logMessage evaluation into conditional blocks
    Code:
    if (messageLogger.is*Enabled()) {
        ...
    }
    ?

    Regards,
    -- Alexey

  • #2
    That is a good suggestion - please open an 'Improvement' JIRA issue.

    https://jira.springsource.org/browse/INT

    Comment


    • #3
      Here it is: https://jira.springsource.org/browse/INT-2939

      Comment

      Working...
      X