[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
re: problems with syslog
On Mon, 9 Jul 2001, Walter Campbell wrote:
> On Mon, 9 Jul 2001, Piotr Swiecicki wrote:
>
> > On Fri, 6 Jul 2001, matthew green wrote:
> >
> > >
> > > Hi
> > > Do the logging through the syslogd deamon really works? I've defined the
> > > USE_SYSLOG in config.h but still ircd doesn't log its activity.
> > > I'm running na ircd2.10.3p1 on a RedHat6.2 machine.
> > >
> > >
> > > have you also defined the various SYSLOG_XXX defines?
> > >
> > I've forgotten to mention about it. Of course I've all this defines
> > defined properly, I suppose, it looks like this:
> >
> > #define USE_SYSLOG
> > #ifdef USE_SYSLOG
> > #define SYSLOG_KILL /* log all operator kills to syslog */
> > #define SYSLOG_SQUIT /* log all remote squits for all servers to syslog */
> > #define SYSLOG_CONNECT /* log remote connect messages for other all servs */
> > #define SYSLOG_USERS /* send userlog stuff to syslog */
> > #undef SYSLOG_OPER /* log all users who successfully become an Op */
> > #define SYSLOG_CONN /* log all uncomplete/rejected connections */
> > #define LOG_FACILITY LOG_DAEMON
> > #endif /* USE_SYSLOG */
> >
> > And still ircd doesn't log anything to the syslogd daemon.
>
> What are your syslog configuration file entries for the daemon
> facility?
I don't think the problem is caused by syslogd. I have an entry
daemon.* /var/log/daemon.log
*.* /var/log/all
and in ircd sources in file config.h the facility is defined
#define LOG_FACILITY LOG_DAEMON
So ircd logs should be written to both files: /var/log/daemon.log and
/var/log/all I suppose.