We have a somewhat similar setup. Multiple servers in a pool. We send the logs to the Database. We distinguish the server by setting the hostname in MDC each time a request is made. If the serialization keeps the MDC values that might work for you. We do have to set the MDC server name in code but I aggree that it would be nice to set it in the config file.
On 6/27/05, Schuweiler, Joel J. <[EMAIL PROTECTED]> wrote: > Ok for a lack of a good universal drawing tool I'm going to do dreaded ascii > > > Applications on a cluster <-> serialized log event <-> socket <-> internet > <-> socket server <-> unserialized log event > > On the socket server I'm looking for an easy way to tell who sent the log > event. Is there an easy way to do this by naming the loggers a specific way > and how would I handle this in my config? > > > > -----Original Message----- > From: James Stauffer [mailto:[EMAIL PROTECTED] > Sent: Monday, June 27, 2005 2:26 PM > To: Log4J Users List > Subject: Re: Filter based on category? > > That doesn't make sense to me. That sounds wrong. Can you give more details? > > On 6/27/05, Schuweiler, Joel J. <[EMAIL PROTECTED]> wrote: > > If I use a dot it strips off the left side in the logging event > > > > -----Original Message----- > > From: James Stauffer [mailto:[EMAIL PROTECTED] > > Sent: Monday, June 27, 2005 2:17 PM > > To: Log4J Users List > > Subject: Re: Filter based on category? > > > > I don't understand why you want to replace the dot with the underscore. > > > > Are you trying to separate your logs based on the type of program? > > > > On 6/27/05, Schuweiler, Joel J. <[EMAIL PROTECTED]> wrote: > > > I would do something like > > > > > > static Logger logger = Logger.getLogger("joel.SecondLogger"); > > > > > > However if I want to do this it appears I need to make a custom filter > > > and rename it to joel_SecondLogger (_ could be any char but .). This also > > > leaves me with having to modify the log4j jar's that come with for ex. > > > Jboss. > > > > > > At this point it might be best to just do > > > > > > static Logger logger = Logger.getLogger("SecondLogger.joel"); > > > > > > -----Original Message----- > > > From: James Stauffer [mailto:[EMAIL PROTECTED] > > > Sent: Monday, June 27, 2005 1:59 PM > > > To: Log4J Users List > > > Subject: Re: Filter based on category? > > > > > > Does that mean that you would have a logger named something like > > > edu.mayo.package.myClass.WebApps? > > > > > > Is there a reason that you can't name it WebApps.edu.mayo.package.myClass? > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > James Stauffer > > Are you good? Take the test at http://www.livingwaters.com/good/ > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > James Stauffer > Are you good? Take the test at http://www.livingwaters.com/good/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- James Stauffer Are you good? Take the test at http://www.livingwaters.com/good/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
