> > From: Andy Smith <[EMAIL PROTECTED]> > Date: 2004/06/16 Wed PM 12:57:46 EDT > To: Alex Burger <[EMAIL PROTECTED]> > CC: net-snmp-coders <[EMAIL PROTECTED]>, > Mike Slifcak <[EMAIL PROTECTED]> > Subject: Re: Logging on Windows > > Alex Burger wrote: > > Andy Smith wrote: > > > >> All, > >> > >> Currently there is no default logging mechanism for the Windows binary > >> distrobution. I hadn't given it a whole lot of thought when I threw > >> together the code to allow snmptrapd to run as a Windows service. > >> snmptrapd is pretty much useless running as a service without a > >> handler application such as traptoemail, but some users may just need > >> simple text file logging. I mention this because as of right now the > >> event log code for Windows is not being used. That is one option for > >> default logging and IMHO should eventually be the default. Until this > >> code is tested and debugged, however, I feel that a default logging > >> mechanism is needed. > >> > >> I would like to propose that we implement something like "-Lf > >> ../var/[appname].log" as the default on Windows. The changes could be > >> made to the winservice.* files and not affect other platforms. I > >> suggest this for the short term because I believe the change would be > >> a simple one and, of course, can be overridden if so desired. > > > > > > How about adding the command line options for snmptrapd into the > > snmptrapd.conf file? It looks like snmpd already has some of the > > command line options in the snmpd.conf file. For example: > > > > dumpPackets 0 > > printEvenNumbers 0 > > doNotFork 0 > > format %M-%L-%y %W > > syslogFacility d > > loggingOutput f /var/log/snmptrapd.log > > pidFile /var/run/snmptrapd.pid > > doNotLogTraps 0 > > > > Alex > > > > > > That is what I was looking for. It can be done with the installer if > deemed appropriate. > > Andy > > -- > -------------------------- > Andy Smith, MCP > [EMAIL PROTECTED] > -------------------------- >
One small template for man, one giant configuration file for mankind. ------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
