Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6616529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:35:37+00:00 2026-05-25T20:35:37+00:00

Our middleware team assignes logger names to each application and that is how they

  • 0

Our middleware team assignes logger names to each application and that is how they know where to direct our socket appenders to.

I would like to use the standard Logger.getLogger(Clazz.class) paradigm but that does not work with the above constraint. Also we can’t log library statements out to our socket appender which would come in handy a lot.

Is there a fairly painless way to map everything from all loggers to this middleware assigned logger?

I think our middleware group messed up in how the configured the enterprise logging system. It looks like there is a setApplication property on the SocketAppender that should be used instead. Regardless, this is what we have to deal with…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T20:35:38+00:00Added an answer on May 25, 2026 at 8:35 pm

    You’d like to redirect your “regular” loggers’ output to the “middleware logger” directly, i.e. without setting the middleware logger’s appender on all the “regular” loggers, right?

    If this is the case, try writing your own appender:

    class MiddlewareRedirectingAppender extends AppenderSkeleton {
         private Logger middlewareLogger = Logger.getLogger("your 'middleware' logger name");
    
         public void doAppend(LoggingEvent event) {
             // implement whatever filtering, etc. you want
             middlewareLogger.log(...);
         }
    }
    

    Attach this appender to your “regular” loggers, or just to the root logger (depending on how your “middleware” logger behaves).

    Disclaimer: this is just a loose idea, I haven’t tested it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our application is a Java-GWT application that uses Guice-Persist and Guice-Servlet extensively. We have
Our customer has asked that our application be able to communicate through HTTPS. The
Our team has an applet that is working fine in Oracle JRE 7u5. Upon
My team and I are working on an API/Middleware system that will require all
The middleware that manages talk between the mainframe and our app is blowing up
Our dev shop currently uses Visual SourceSafe. We all know how that could end
One of our products implements the following one-way web service structure: Server <--------------------- Middleware
Our PHP application makes use of json_encode($myObject) a lot, in conjunction with the mustache
We're thinging of making a middleware for mysql in our project, which we hope
In our Pylons based web-app, we're creating a class that essentially provides some logging

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.