You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Matt Brown <ms...@gmail.com> on 2010/03/16 14:44:09 UTC

Broken link in log4j API docs

Not sure if this is the proper list to report this on but
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/DOMConfigurator.htmllinks
to
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/log4j.dtdwhich
is broken.

Thanks
Matt

Re: Sharing Appenders between loggers?

Posted by Curt Arnold <ca...@apache.org>.
Yes, appenders can be attached at multiple places in the hierarchy.  An appender can also be attached multiple times to the same logger or on two different levels of the hierarchy (for example if you attached A1 to the rootLogger), both of which can result in an appender processing the same event multiple times.


On Mar 18, 2010, at 10:01 AM, Tasso Angelidis wrote:

> log4j.rootLogger = ERROR, stdout
> log4j.logger.org.jboss = DEBUG, A1
> log4j.logger.ca.xyz = INFO, A1
> 
> A1 is a DaylyRollingFileAppender. Just wondering of both logers can use the same A1 appender.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Sharing Appenders between loggers?

Posted by Tasso Angelidis <ta...@rbsworldpay.ca>.
log4j.rootLogger = ERROR, stdout
log4j.logger.org.jboss = DEBUG, A1
log4j.logger.ca.xyz = INFO, A1

A1 is a DaylyRollingFileAppender. Just wondering of both logers can use the same A1 appender.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: Question about file locking

Posted by Curt Arnold <ca...@apache.org>.
On Mar 17, 2010, at 10:13 AM, Tasso Angelidis wrote:

> I'm using log4j in a pretty vanilla way... No extra applications logging to the same file... 1 logger per class. Using RollingFileAppender...
> 
> Is the file exclusively locked or share locked?
> 
> And for Windows we all know that sometimes a file can remain locked after unexpected program termination how is this dealt with?
> 

All the built-in file appenders predate the introduction of java.nio which added O/S level locking mechanisms.  There is nothing at the log4j level that attempts to lock or to release locks.  All that stuff is at the JVM level and is Java implementation specific.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Question about file locking

Posted by Tasso Angelidis <ta...@rbsworldpay.ca>.
I'm using log4j in a pretty vanilla way... No extra applications logging to the same file... 1 logger per class. Using RollingFileAppender...

Is the file exclusively locked or share locked?

And for Windows we all know that sometimes a file can remain locked after unexpected program termination how is this dealt with?

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org