syslogd with circular buffer
boyska
8568280dd1
we introduced non-blocking writes; however, being non-blocking when the goroutine has no buffer means that many messages will be considered lost. This commit change from "non blocking" to "max 500ms; first timeout means stop it all"; it also put a little buffer on client messages. |
||
---|---|---|
cmd/circologd | ||
hub.go | ||
README.md |
A syslog daemon implementing circular buffer, in-memory storage.
This is useful when you want to keep some (heavy detailed) log available, but you don't want to log too many things to disk.
On your "main" syslog, send some message to this one!