Skip to content

Instantly share code, notes, and snippets.

@metalelf0
Created August 9, 2013 14:56
Show Gist options
  • Save metalelf0/6194294 to your computer and use it in GitHub Desktop.
Save metalelf0/6194294 to your computer and use it in GitHub Desktop.
#!/bin/sh
fluent_log(){
local project="$1"
local script_name="$2"
local message="$3"
echo "{\""project\"":\""$project"\",\""script_name\"":\""$script_name"\",\""message\"":\""$message\""}" | fluent-cat fluentd.test.log
}
fluent_log "Library" "Reload books" "Started"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment