god icon indicating copy to clipboard operation
god copied to clipboard

Specify syslog server for remote logging

Open andreimarinescu opened this issue 11 years ago • 3 comments

Hey guys! I would like to redirect all god logs to a Greylog2 server. Is there any way to specify the syslog server that I would like to log to directly from god?

andreimarinescu avatar Jul 04 '13 11:07 andreimarinescu

You would have to do that via your local syslog server. God just uses the syslog() call to log locally to syslog.

eric avatar Jul 04 '13 18:07 eric

Thanks Eric, I'll figure it out in syslog and post the solution here in case anyone finds it useful.

andreimarinescu avatar Jul 05 '13 11:07 andreimarinescu

Although I'm also logging to Graylog via syslog, I was just thinking that it would be nice if one could simply set a logger instance in the configuration file. The interface as implemented by SimpleLogger is straightforward enough to be compatible with a logger from the gelf-rb gem or probably a number of other logging libraries.

That way, it would be more comfortable to add tags or set a separate facility name. I'd be willing to implement this in case you're interested.

milgner avatar Nov 18 '14 17:11 milgner