Skip to content

Instantly share code, notes, and snippets.

@mattbailey
Created August 8, 2012 19:28
Show Gist options
  • Save mattbailey/3297890 to your computer and use it in GitHub Desktop.
Save mattbailey/3297890 to your computer and use it in GitHub Desktop.
backend.swatch
watchfor /Error|ERROR|fail|FAIL|Fail|Fatal|fatal|FATAL|WARN|Warn|warn/
exec echo '$_' | swatchout.sh backend_daily 34560 1 20000
watchfor /Error|ERROR|fail|FAIL|Fail|error/
exec echo '$_' | swatchout.sh backend_error 600 20 25
watchfor /Fatal|FATAL|fatal/
exec echo '$_' | swatchout.sh backend_fatal 5 1 1
watchfor /warn|Warn|WARN/
exec echo '$_' | swatchout.sh backend_warn 600 100 150
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment