[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4cxx-dev
Subject:    Re: pass a udp socket as an appender
From:       Thorsten_Schöning <tschoening () am-soft ! de>
Date:       2014-04-24 7:20:06
Message-ID: 1566960612.20140424092006 () am-soft ! de
[Download RAW message or body]

Guten Tag Alder Netw,
am Donnerstag, 24. April 2014 um 01:10 schrieben Sie:

> We want to set some special socket options to the socket to the remote
> syslog server, wonder whether we can create a udp socket ourselves,
> perform whatever customized option configuration, and pass to log4cx as
> an appender?   This will be really useful, thanks in advance,

You can subclass an existing appender or a appender base class and
provide that manually to a logger, overriding SocketAppender or
SocketAppenderSkeleton should be the way to go.

http://logging.apache.org/log4cxx/apidocs/namespacelog4cxx_1_1net.html
http://logging.apache.org/log4cxx/apidocs/classlog4cxx_1_1_logger.html#a7c0629acee8dbd1251474bea15d7c9e2

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning       E-Mail:Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic