In log4j 1.3, there is a mechanism for defining repository-wide properties, which could then be added to your pattern layout.
http://logging.apache.org/log4j/docs/api-1.3/org/apache/log4j/spi/LoggerRepositoryEx.html There is also PropertyFilter, which allows you add properties to all events processed by an appender (you specify the name/value pairs in the xml config file). Also in log4j 1.3, a number of the network-based appenders support 'hostname' and 'application' properties which are automatically added to each event processed by the appender. Scott Deboy COMOTIV SYSTEMS 111 SW Columbia Street Ste. 950 Portland, OR 97201 Telephone: 503.224.7496 Cell: 503.997.1367 Fax: 503.222.0185 [EMAIL PROTECTED] www.comotivsystems.com -----Original Message----- From: V Jayakumar [mailto:[EMAIL PROTECTED] Sent: Tue 5/23/2006 10:53 AM To: [email protected] Subject: Conversion character to log the Hostname or IP Address Hello, Few days back, I had posted a message asking, if there is a conversion character that I can specify in the Patter Layout to log the IP Address or host name of the system in which the logger is instantiated. So far, I haven't got any reply. Could someone confirm, which is the best way to submit for an enhancement request to log4j, please ? Also, is there a possibility of getting this implemented in log 4j, version 1.3 ? Thanks in advance for your help. --------------------------------------------------------------------- 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]
