Request for enhancment in PatternLayout

2003-10-20 Thread Elias Ross
For the application I am working on, I receive log messages from multiple machines. It would be handy to include a new PatternLayout character sequence %h (or %H or %a) to include the hostname that generated the trap. %h{1} would return the hostname without the domain. Also, being able to refer

Re: can log4j configuration file be sepearted into two...n files?

2003-10-22 Thread Elias Ross
On Wed, 2003-10-22 at 19:58, Yu Xiang Xi (Maveo) wrote: > Hello > > I have a question on the separation of log4j configuration file. Use the XML property file format and declare external entities at the top. ]> &customer; &customer2; ...

Interesting deadlock situations - org.apache.log4j.spi.RootCategory

2003-10-24 Thread Elias Ross
I just came across a deadlock condition in my code brought out by Log4J. Here is a simplified view of the objects in play: class State { Logger log1; synchronized void setState() { // Something takes a long time here log.debug("hello world"); } synchronized Object getSt

Re: Interesting deadlock situations - org.apache.log4j.spi.RootCategory

2003-10-24 Thread Elias Ross
On Fri, 2003-10-24 at 14:17, Elias Ross wrote: [cut] > So, I am wondering why can't the rendered render without holding the > lock on 'org.apache.log4j.spi.RootCategory'? I'm replying to myself, I know... Another work-around for this sort of deadlock would be for me w

Re: Interesting deadlock situations - org.apache.log4j.spi.RootCategory

2003-10-24 Thread Elias Ross
Okay, let me finish, I'm sorry I hit send early by mistake. :-) On Fri, 2003-10-24 at 15:26, Elias Ross wrote: > > Here is the stack trace: org.apache.log4j.WriterAppender.append(WriterAppender.java:150) org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221) -

Re: Log4J 1.2.8 not functional with J2ME

2003-11-14 Thread Elias Ross
On Fri, 2003-11-14 at 03:29, Dirk Materlik wrote: > Hi, > I am trying to use Log4J with the Sun implementation of the Java 2, > Micro Edition on the Sharp Zaurus. This used to work without problems, > however, with 1.2.8 I get a ClassNotFoundException for > java.beans.Introspector when I try using

Re: logj, EJBs, JBoss revisited (design issues)

2003-11-19 Thread Elias Ross
On Wed, 2003-11-19 at 02:08, Stefan Puiu wrote: > > The second one is related to finding a different solution using log4j. > We needed to have a custom logger for two main reasons: > > 1) supplementary pattern converters (besides the parameters supported by > log4j, we need a supplementary set