Results 1 to 3 of 3

Thread: Wire tapping channel to do file logging?

  1. #1

    Default Wire tapping channel to do file logging?

    Is it possible to define a file logger as a wire tap interceptor with customized file logging like different file for error and debug? The current logging channel adapter logs it in the console.

  2. #2
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    Yes, define the interceptor, implement your logging logic and configure it to wire-tap on a particular channel or define it as global interceptor.

  3. #3

    Default

    Thanks for the reply oleg.

    I wrote my own interceptor bean which extends ChannelInterceptorAdapter and overrides preSend method. Here I captured channel name from which the interceptor is invoked as I have single logging interceptor for all channels so I need to know the channel name for which the log message is generated. This was not available in the wire tap logging handler adapter provided in spring integration.

    Thanks anyways.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •