Created
August 9, 2013 14:56
-
-
Save metalelf0/6194294 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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