import json


def log(title,message="",percent=None,type="sys"):
	"""
	Log message types:
	
	note  - general output
	sys   - system data
	fail - agent did not run as requested
	warn - agent running potentially harmfully
	"""
	return json.dumps({"title":title,"message":message,"type":type})+"\n"