RE: [Log4plsql] How to write in the Syslog file
Brought to you by:
gmoulard
From: <log...@li...> - 2003-06-23 12:28:57
|
Fran=E7ois,=20 Is not possible for me to test'it, but I find 2 differents exemple. In log4j FAQ I read the necesity to start in init.d file le syslogd = process with -r parameter ---------------------- -- log4j.xml ---------------------- <appender name=3D"SYS" class=3D"org.apache.log4j.net.SyslogAppender"> <param name=3D"Facility" value=3D"SYSLOG"/> <param name=3D"FacilityPrinting" value=3D"true"/> <param name=3D"SyslogHost" value=3D"111.222.3.44"/> <layout class=3D"org.apache.log4j.PatternLayout"> <param name=3D"ConversionPattern" value=3D"%d| %c| %X{to} | = %X{from} | %X{service} | %X{action} |%n"/> </layout> </appender> ----------------------- -- in log4j.properties ----------------------- # Set options for appender named "A1". # Appender "A1" will be a SyslogAppender log4j.appender.A1=3Dorg.apache.log4j.net.SyslogAppender # The syslog daemon resides on www.abc.net log4j.appender.A1.SyslogHost=3Dwww.abc.net # A1's layout is a PatternLayout, using the conversion pattern # <b>%r %-5p %c{2} %M.%L %x - %m\n</b>. Thus, the log output will # include # the relative time since the start of the application in # milliseconds, followed by the level of the log request, # followed by the two rightmost components of the logger name, # followed by the callers method name, followed by the line number, # the nested disgnostic context and finally the message itself. # Refer to the documentation of {@link PatternLayout} for further = information # on the syntax of the ConversionPattern key. log4j.appender.A1.layout=3Dorg.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=3D%-4r %-5p %c{2} %M.%L %x - = %m\n =20 Regards,=20 Guillaume Moulard=20 gmo...@us... Project : LOG4PLSQL : Oracle Database Loggin tools see : http://log4plsql.sourceforge.net/ =20 -----Message d'origine----- De : log...@li... [mailto:log...@li...] Envoy=E9 : lundi 23 juin 2003 14:42 =C0 : log...@li... Objet : [Log4plsql] How to write in the Syslog file Hi, I have seen in the documentation that it is possible via the Log4JbackgroundProcess to use the standard features of log4j. My question is : Is it possible to have or where to found an example of = use of the Log4JbackgroundProcess an in particular in the case of the writing = in the syslog file. Thanks in advance. Regards, Fran=E7ois Geraerts ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ Log4plsql-all-info mailing list Log...@li... https://lists.sourceforge.net/lists/listinfo/log4plsql-all-info log4plsq : http://log4plsql.sourceforge.net |