You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2006/08/31 07:17:52 UTC

DO NOT REPLY [Bug 39687] - Feature Request: Add SyslogPort option to SyslogAppender

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39687>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39687


carnold@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From carnold@apache.org  2006-08-31 05:17 -------
Committed a slightly different take in rev 438792 to the log4j-1_2 branch and 438801 to the trunk.

Adding a separate "port" property to SyslogAppender (as suggested in first set of patches) was 
problematic since SyslogWriter is created on the call ot setSyslogPort() and order of calling 
setSyslogPort() and setSyslogHost() could be arbitrary when using configurators.

The second set of patches would break support for naked IPv6 addresses which would contain colons 
but would now be interpreted as an address and a port.

The committed patch will use java.net.URL to parse the syslogHost property except when the property 
contains more than one colon and does not start with a left bracket.

The following forms should still be supported:

Host name:    foo.example.org
IPv4:              127.0.0.1
IPv6:              ::1

The following forms are added:

Host and port:        foo.example.org:1514
IPv4 and port:        127.0.0.1:1514
IPv6 (URL form):      [::1]
IPv6 and port:         [::1]:1514

Would appreciate any feedback.                

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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