server.py 411 B

123456789101112131415
  1. #!/usr/bin/env python3
  2. import simple_http_server.server as server
  3. import req
  4. import logging
  5. logging.basicConfig(format='%(asctime)s - %(filename)s[line:%(lineno)d] - %(levelname)s: %(message)s',
  6. level=logging.DEBUG,
  7. filename='/var/log/aligenie.log',
  8. filemode='a')
  9. def main(*args):
  10. server.start(port=19090)
  11. if __name__ == "__main__":
  12. main()