Skip to content

Instantly share code, notes, and snippets.

@dekokun
Created August 6, 2012 10:02
Show Gist options
  • Save dekokun/3273066 to your computer and use it in GitHub Desktop.
Save dekokun/3273066 to your computer and use it in GitHub Desktop.
ログ関数はこんな感じがいいのかなぁ。
function log_output(){
local LEVEL=$1
shift
local MESSAGE=$@
echo `date '+%Y/%m/%d/%H:%M:%S'` `hostname` `basename $0` $$ \($LEVEL\) $MESSAGE
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment