Skip to content

Instantly share code, notes, and snippets.

@pingswept
Created January 9, 2015 20:14
Show Gist options
  • Select an option

  • Save pingswept/9193dbd4e6f881d21c78 to your computer and use it in GitHub Desktop.

Select an option

Save pingswept/9193dbd4e6f881d21c78 to your computer and use it in GitHub Desktop.
Test script for Supervisord logging
#!/usr/bin/python
import datetime
from time import sleep
import sys
while(1):
sys.stdout.write('The time is now: {0}\n'.format(datetime.datetime.now()))
sys.stdout.flush()
sleep(5)
sys.stderr.write("Fake error, everyone!")
sys.stderr.flush()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment