|
From: Bruce P. <bru...@gm...> - 2006-05-11 20:53:34
|
Leif, What I'd suggest is that the default be LOG_USER, but allow for the user to specify any of the LOG_LOCAL0 through LOG_LOCAL7 vaules instead of LOG_USER. This would provide the ability to redirect the wrapper logs if desired. If I could, for example, have wrapper write everything out to LOG_LOCAL3, then it would be a simple matter for me to modify my /etc/syslog.conf so that anything corresponding to LOG_LOCAL3 gets redirected to it's own file or to a remote loghost. All I'd need to do is add one of the following: local3.* /var/log/wrapper.log or local3.* @loghost I wouldn't recommend allowing any of the other values since they're meant for other specific uses. -Bruce On 5/10/06, Leif Mortenson <le...@ta...> wrote: > > Bruce, > I will admit some ignorance in this area. Currently I am using the > LOG_USER > facility. The code is as follows: > > openlog( loginfoSourceName, LOG_PID | LOG_NDELAY, LOG_USER ); > syslog( eventType, "%s", szBuff ); > closelog( ); > > Looking at the man page for openlog I see a large number of facility > values. > What do you suggest here? Would making it possible to configure any of > them > be recommended? Setting the facility appears to decide which log file > the message > ends up in. > How do you normally configure a remote logging host. > > Cheers, > Leif > > > Bruce Pennypacker wrote: > > I see that there are two properties relating to syslog logging: > > wrapper.syslog.ident and wrapper.syslog.loglevel. But what facility > > is used for syslogging? Is it possible to set a custom facility, or > > even better specify a remote logging host? We have a loghost that > > collects syslogs from all our hosts & applications. We'd like to > > include service wrapper logs in this collection. > > > > -Bruce > > > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |