@task
def log(module='*', lines=10):
	""" View log for [module] """

	if not glob.glob('logs/*.log'):
		raise CakeError('No logfiles found')
	else:
		try: sbp.call((lines, module, python()) % "tail -n %s -f logs/%s.log | PYTHONPATH=. %s tools/logger", shell=True)
		except KeyboardInterrupt: pass


# == Debugging ==
dataset/ETHPy150Open alexcepoi/pyscale/pyscale/tools/tasks.py/log/swapped operands of `%`