Re: how to change log label at the run time
You are right joerg. I am doing so. Thanks for the help. I will update here to my findings. Regards, Vijay Shanker Dubey On Sun, Dec 13, 2009 at 12:22 AM, Jörg Schaible wrote: > Hi Vijay, > > vijay shanker wrote: > > > Hi joerg; > > > > I am using log4j as log4j as log implementation. > > This is fine. > > > Can you suggest any thing relevant to my situation and requirement > > Well, you will have to consult the Log4J documentation for this. > > - Jörg > > > - > To unsubscribe, e-mail: user-unsubscr...@commons.apache.org > For additional commands, e-mail: user-h...@commons.apache.org > >
Re: how to change log label at the run time
Hi joerg; I am using log4j as log4j as log implementation. Can you suggest any thing relevant to my situation and requirement Regards, Vijay Shanker Dubey Ph: +91-9818311884 2009/12/11 Jörg Schaible > Hi Vijay, > > vijay shanker wrote at Freitag, 11. Dezember 2009 07:07: > > > Hi all > > > > I am using commons-logging with aspectj. > > > > Once I created a log object by below code > > > > > > private Log log = LogFactory.getLog(LoggingAspect.class); > > > > > > When i print log with this object; i get output like > > > > > > 2009-12-11 11:31:41,558 INFO [LoggingAspect] > > com.stpl.pocs.logs.BaseService > > : Entering method getName. > > 2009-12-11 11:31:41,558 INFO [LoggingAspect] > > com.stpl.pocs.logs.BaseService > > : Exiting method getName. > > > > > > Is there any way I can change the " [LoggingAspect]" to the class name > > "com.stpl.pocs.logs.BaseService". > > > > So this is requirement I presume is to change log label dynamically. > > > > Please suggest. > > Actually you cannot. Simply because commons-logging does not log ;-) > > See, commons-logging is only a bridge for various logging systems. > Therefore > you have to look into the documentation of the log implementation in use, > how to configure the output. Looking at yours, the log seems to be handled > by the JDK logger, so consult the JDK documentation for the logger > configuration. Or select a logging implementation you're more familiar > with: > http://commons.apache.org/logging/commons- > logging-1.1.1/guide.html#Configuration > > - Jörg > > > - > To unsubscribe, e-mail: user-unsubscr...@commons.apache.org > For additional commands, e-mail: user-h...@commons.apache.org > >
how to change log label at the run time
Hi all I am using commons-logging with aspectj. Once I created a log object by below code private Log log = LogFactory.getLog(LoggingAspect.class); When i print log with this object; i get output like 2009-12-11 11:31:41,558 INFO [LoggingAspect] com.stpl.pocs.logs.BaseService : Entering method getName. 2009-12-11 11:31:41,558 INFO [LoggingAspect] com.stpl.pocs.logs.BaseService : Exiting method getName. Is there any way I can change the " [LoggingAspect]" to the class name "com.stpl.pocs.logs.BaseService". So this is requirement I presume is to change log label dynamically. Please suggest. Regards, Vijay Shanker Dubey
File upload: not identified content type.
Hello friends; I am using commons file upload library to upload files. I have been noticing some time my library does not get file content type correct. For such a file it saves *application*/*octet*-*stream. * Can any body describe how it does happens? If some of you have known for such a situation. Please share the information. ** Regards, Vijay Shanker Dubey Ph: +91-9818311884
Connection management between two servers(Connection Pool)
Hi all, I am working on a project to implement connection pooling between two server. and i am using connection pool as a mechanism to manage connections. To communicate between these two servers i am using HttpClient library. Now the problem part: lets say i have two servers. main server is A. there are two other service providing services to this A. lets call then B and C. My requirement: I have 5 open connections from A to B. If all 5 connections are active and being used. then a should try to connect to server C. server C has also 5 open connection. How should i design this connection manager. My plan: I should manage two different pools for both the servers. If server B got exhausted try to get a connection object from another pool. Please let me know expert opinions. Warm Regards, VSD
commons-id
Hi all, I am in need to get use of VersionFourGenerator for uid generation. when searched i found it to be in commons-id project. but there does not any way; as i found; to download that file from apache site. Can any one please provide some details about this project and from where to download jar/source. -- Regards, Vijay Shanker
how unique is uid generated by version four generater.
hi gruop, This is my first mail to the list. I am part of a team developing a system where i have to generate uid at three different platforms. These data should be saved in a single repository at the server. We are planning to use VersionFourGenerator for uid generation. I just wanted to know how can I ensure that the UUIDs generated from three different platforms are unique and the will not be any problem when using this as primary key in server database. i am in the situation to generate uid, as if should always be unique. -- Regards, Vijay Shanker