Can some one post an example of using syslog outputter for log4r, I am currently using stdout but want to log to syslog.
mylog = Logger.new 'mylog' mylog.outputters = Outputter.stdout mylog.info 'Starting up.'
raj
Thanks also to the following blog posts.
Kind of lame answering my own question, but I found answer to this and adding it for later searches.
For some reason I need to require log4r/outputter/syslogoutputter explicitly other wise SyslogOutputter would cause ‘uninitialized constant SyslogOutputter (NameError)’ error. Other outputters do not seem to have this problem.
raj