File: syslog.eye

package info (click to toggle)
ruby-eye 0.7-5.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 672 kB
  • sloc: ruby: 5,003; makefile: 3
file content (15 lines) | stat: -rw-r--r-- 337 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# output eye logger to syslog, and process stdout to syslog too
#   experimental feature, in some cases may be unstable

Eye.config do
  logger syslog
end

Eye.app :syslog_test do
  process :some do
    pid_file "/tmp/syslog_test.pid"
    start_command "ruby -e 'loop { p Time.now; sleep 1 }'"
    daemonize!
    stdall syslog
  end
end