Shuffle it all up
This commit is contained in:
27
companion_software/houston/__main__.py
Normal file
27
companion_software/houston/__main__.py
Normal file
@@ -0,0 +1,27 @@
|
||||
import time
|
||||
import logging
|
||||
import verboselogs
|
||||
import coloredlogs
|
||||
|
||||
|
||||
# Install verbose logs
|
||||
verboselogs.install()
|
||||
|
||||
# Create a logger object.
|
||||
logger = logging.getLogger('Houston_Log')
|
||||
|
||||
# Install colored logs
|
||||
coloredlogs.install(level='INFO',
|
||||
logger=logger,
|
||||
fmt='%(asctime)s,%(msecs)03d %(hostname)s %(levelname)s %(message)s')
|
||||
|
||||
logger.info('Lewis Companion Software Started.')
|
||||
logger.success('Ready to robot!')
|
||||
|
||||
# Junk~
|
||||
while True:
|
||||
try:
|
||||
logger.debug('Nothing to do.')
|
||||
time.sleep(1)
|
||||
except KeyboardInterrupt:
|
||||
break
|
||||
Reference in New Issue
Block a user