lib/bio/pipengine/job.rb
# log a step according to the selected adapter
log a step according to the selected adapter
log a step according to the selected adapter
def logger(step, message)  
				case self.log
					when "stdin"
					   "echo \"#{step.name} #{name} #{message} `whoami` `hostname` `pwd` `date`.\""
					when "syslog"
						 "logger -t PIPENGINE \"#{step.name} #{name} #{message} `whoami` `hostname` `pwd`\""
					when "fluentd"
						 "curl -X POST -d 'json={\"source\":\"PIPENGINE\", \"step\":\"#{step.name}\", \"message\":\"#{message}\", \"job_id\":\"#{name}\", \"user\":\"\'\"`whoami`\"\'\", \"host\":\"\'\"`hostname`\"\'\", \"pwd\":\"\'\"`pwd`\"\'\"}' #{self.log_adapter}"
					end
			end
def logger ( step , message ) case self . log when "stdin" "echo \"#{step.name} #{name} #{message} `whoami` `hostname` `pwd` `date`.\"" when "syslog" "logger -t PIPENGINE \"#{step.name} #{name} #{message} `whoami` `hostname` `pwd`\"" when "fluentd" "curl -X POST -d 'json={\"source\":\"PIPENGINE\", \"step\":\"#{step.name}\", \"message\":\"#{message}\", \"job_id\":\"#{name}\", \"user\":\"\'\"`whoami`\"\'\", \"host\":\"\'\"`hostname`\"\'\", \"pwd\":\"\'\"`pwd`\"\'\"}' #{self.log_adapter}" end end
log a step according to the selected adapter
log a step according to the selected adapter
step
<not_specific>
message
<not_specific>